Skip to content

Commit 7c5597a

Browse files
committed
lint
1 parent dbe3168 commit 7c5597a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pkg/utils/monaco-editor/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { globalCache, systemConfig, messageQueue } from "@App/pages/store/global";
2-
import { SystemConfigChange } from "@App/pkg/config/config";
2+
import { SystemConfigChange, type SystemConfigKey } from "@App/pkg/config/config";
33
import type { TKeyValue } from "@Packages/message/message_queue";
44
import EventEmitter from "eventemitter3";
55
import { languages } from "monaco-editor";
@@ -477,8 +477,9 @@ export default function registerEditor() {
477477
updateLang(res);
478478
});
479479

480-
messageQueue.subscribe<TKeyValue>(SystemConfigChange, ({ key, value }) => {
480+
messageQueue.subscribe<TKeyValue<SystemConfigKey>>(SystemConfigChange, ({ key, value }) => {
481481
if (key === "language") {
482+
// @ts-ignore
482483
updateLang(value);
483484
}
484485
});

0 commit comments

Comments
 (0)