diff --git a/playground/src/main.ts b/playground/src/main.ts index fee95d8..d5cda42 100644 --- a/playground/src/main.ts +++ b/playground/src/main.ts @@ -1,8 +1,9 @@ +import { Environment } from 'monaco-editor'; import { initCopyButton } from './copy-button'; declare global { interface Window { - MonacoEnvironment: { getWorker: () => Worker }; + MonacoEnvironment?: Environment; currentEditorContent: string; } }