From 6bff2bb5439d25e0ab2a24a8ca1b28b89ef40ff9 Mon Sep 17 00:00:00 2001 From: Ricardo Cino Date: Sun, 26 Jun 2022 23:59:32 +0200 Subject: chore: turned all auth containers into typescript (#375) --- src/stores/index.ts | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'src/stores/index.ts') diff --git a/src/stores/index.ts b/src/stores/index.ts index a5b1a7452..aac501cda 100644 --- a/src/stores/index.ts +++ b/src/stores/index.ts @@ -1,4 +1,3 @@ -import { Stores } from 'src/stores.types'; import { RouterStore } from 'mobx-react-router'; import { ApiInterface } from 'src/api'; import { Actions } from 'src/actions/lib/actions'; @@ -16,12 +15,29 @@ import { workspaceStore } from '../features/workspaces'; import { communityRecipesStore } from '../features/communityRecipes'; import { todosStore } from '../features/todos'; +export interface RealStores { + router: RouterStore; + app: AppStore; + user: UserStore; + features: FeaturesStore; + settings: SettingsStore; + services: ServicesStore; + recipes: RecipesStore; + recipePreviews: RecipePreviewsStore; + ui: UIStore; + requests: RequestStore; + globalError: GlobalErrorStore; + workspaces: typeof workspaceStore; + communityRecipes: typeof communityRecipesStore; + todos: typeof todosStore; +} + export default ( api: ApiInterface, actions: Actions, router: RouterStore, -): Stores => { - const stores: Stores | any = {}; +): RealStores => { + const stores: RealStores | any = {}; Object.assign(stores, { router, app: new AppStore(stores, api, actions), -- cgit v1.2.3-54-g00ecf