From 9e60d03450eaed63e78054386cb953ee45f69e6e Mon Sep 17 00:00:00 2001 From: cyfung1031 <44498510+cyfung1031@users.noreply.github.com> Date: Fri, 6 Feb 2026 13:49:21 +0900 Subject: [PATCH] =?UTF-8?q?[v1.3]=20=E6=94=B9=E8=89=AF=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=20-=20=E5=8A=A0=20as=20const?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/options/routes/ScriptList/hooks.tsx | 2 +- src/pages/options/routes/Setting.tsx | 2 +- src/pages/store/AppContext.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 () => {