Skip to content

Commit 736aac4

Browse files
committed
Revert "Update monaco.ts"
This reverts commit 6bc59d2.
1 parent 6bc59d2 commit 736aac4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/monaco.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ 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-
MonacoEnvironment = {
68-
getWorker: (_moduleId: string, label: string): Worker => {
67+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
68+
(self as any).MonacoEnvironment = {
69+
getWorker: (_: string, label: string) => {
6970
if (label === 'yaml') {
7071
return new YamlWorker();
7172
}

0 commit comments

Comments
 (0)