Skip to content

Commit 6bc59d2

Browse files
committed
Update monaco.ts
1 parent 198714f commit 6bc59d2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib/monaco.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ const GITHUB_DARK_EDITOR_COLORS: monaco.editor.IColors = {
6464

6565
export const configureMonaco = () => {
6666
// Route YAML language to monaco-yaml worker, everything else to the default editor worker
67-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
68-
(self as any).MonacoEnvironment = {
69-
getWorker: (_: string, label: string) => {
67+
MonacoEnvironment = {
68+
getWorker: (_moduleId: string, label: string): Worker => {
7069
if (label === 'yaml') {
7170
return new YamlWorker();
7271
}

0 commit comments

Comments
 (0)