diff --git a/src/pages/options/routes/ScriptList/hooks.tsx b/src/pages/options/routes/ScriptList/hooks.tsx index 42974e2d5..991f6a154 100644 --- a/src/pages/options/routes/ScriptList/hooks.tsx +++ b/src/pages/options/routes/ScriptList/hooks.tsx @@ -186,7 +186,7 @@ export function useScriptList() { return res; }); }, - }; + } as const; const unhooks = [ subscribeMessage("scriptRunStatus", pageApi.scriptRunStatus), diff --git a/src/pages/options/routes/Setting.tsx b/src/pages/options/routes/Setting.tsx index 5a5e51b90..22b3a640e 100644 --- a/src/pages/options/routes/Setting.tsx +++ b/src/pages/options/routes/Setting.tsx @@ -83,7 +83,7 @@ function Setting() { badge_text_color: setBadgeTextColor, script_menu_display_type: setScriptMenuDisplayType, editor_type_definition: setEditorTypeDefinition, - }; + } as const; const unhooks = [ subscribeMessage>( SystemConfigChange, diff --git a/src/pages/store/AppContext.tsx b/src/pages/store/AppContext.tsx index 94d275d9c..df1cf99c4 100644 --- a/src/pages/store/AppContext.tsx +++ b/src/pages/store/AppContext.tsx @@ -81,7 +81,7 @@ export const AppProvider: React.FC = ({ children }) => { setAppColorTheme(theme); setColorThemeState(theme); }, - }; + } as const; const unhooks = [subscribeMessage("onColorThemeUpdated", pageApi.onColorThemeUpdated)]; return () => {