Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Add missing type annotation to UIState module

天舟2dd894ee82c8
diff --git a/frontend/src/store/modules/uistate.ts b/frontend/src/store/modules/uistate.ts
index 0ada916cff..9caf86dd78 100644
--- a/frontend/src/store/modules/uistate.ts
+++ b/frontend/src/store/modules/uistate.ts
@@ -42,11 +42,11 @@ const saveStateByKey = function (
};
const getters = {
- collapseStateByKey: (state: UIState) => (key: string) => {
+ collapseStateByKey: (state: UIState) => (key: string): boolean => {
return stateByKey(state.collapseStateByKey, COLLAPSE_MODULE, key);
},
- introStateByKey: (state: UIState) => (key: string) => {
+ introStateByKey: (state: UIState) => (key: string): boolean => {
return stateByKey(state.introStateByKey, INTRO_MODULE, key);
},
};