aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-21 08:07:32 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-21 08:55:38 +0530
commitb1cf1849f5bfa8f297f78a5ca58d797f466b3086 (patch)
tree658f3adeb740cf54021dfb6ad951649f0d539e6d /src/stores
parentrefactor(cleanup): remove code that refers to paid subscription (diff)
downloadferdium-app-b1cf1849f5bfa8f297f78a5ca58d797f466b3086.tar.gz
ferdium-app-b1cf1849f5bfa8f297f78a5ca58d797f466b3086.tar.zst
ferdium-app-b1cf1849f5bfa8f297f78a5ca58d797f466b3086.zip
chore: typescript conversion
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/index.ts (renamed from src/stores/index.js)5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stores/index.js b/src/stores/index.ts
index b6e481e8a..e980f2c5b 100644
--- a/src/stores/index.js
+++ b/src/stores/index.ts
@@ -34,9 +34,12 @@ export default (api, actions, router) => {
34 communityRecipes: communityRecipesStore, 34 communityRecipes: communityRecipesStore,
35 todos: todosStore, 35 todos: todosStore,
36 }); 36 });
37
37 // Initialize all stores 38 // Initialize all stores
38 Object.keys(stores).forEach((name) => { 39 Object.keys(stores).forEach((name) => {
39 if (stores[name] && stores[name].initialize) stores[name].initialize(); 40 if (stores[name] && stores[name].initialize) {
41 stores[name].initialize();
42 }
40 }); 43 });
41 return stores; 44 return stores;
42}; 45};