diff options
author | 2022-06-22 00:32:18 +0200 | |
---|---|---|
committer | 2022-06-21 22:32:18 +0000 | |
commit | 73ba955e344c8ccedd43235495ef8b72b5a2b6fd (patch) | |
tree | 03766ab32fefe7e83026a14393527f1dcbaed849 /src/api | |
parent | docs: add cino as a contributor for infra [skip ci] (#330) (diff) | |
download | ferdium-app-73ba955e344c8ccedd43235495ef8b72b5a2b6fd.tar.gz ferdium-app-73ba955e344c8ccedd43235495ef8b72b5a2b6fd.tar.zst ferdium-app-73ba955e344c8ccedd43235495ef8b72b5a2b6fd.zip |
chore: Transform AppStore.js into Typescript (#329)
* turn actions into typescript
* correct tsconfig
* added TypedStore
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/index.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/api/index.ts b/src/api/index.ts index 59fad194a..5ca6ba132 100644 --- a/src/api/index.ts +++ b/src/api/index.ts | |||
@@ -6,7 +6,17 @@ import UserApi from './UserApi'; | |||
6 | import LocalApi from './LocalApi'; | 6 | import LocalApi from './LocalApi'; |
7 | import FeaturesApi from './FeaturesApi'; | 7 | import FeaturesApi from './FeaturesApi'; |
8 | 8 | ||
9 | export default (server: any, local: any) => ({ | 9 | export interface ApiInterface { |
10 | app: AppApi; | ||
11 | services: ServicesApi; | ||
12 | recipePreviews: RecipePreviewsApi; | ||
13 | recipes: RecipesApi; | ||
14 | features: FeaturesApi; | ||
15 | user: UserApi; | ||
16 | local: LocalApi; | ||
17 | } | ||
18 | |||
19 | export default (server: any, local: any): ApiInterface => ({ | ||
10 | app: new AppApi(server), | 20 | app: new AppApi(server), |
11 | services: new ServicesApi(server, local), | 21 | services: new ServicesApi(server, local), |
12 | recipePreviews: new RecipePreviewsApi(server), | 22 | recipePreviews: new RecipePreviewsApi(server), |