Skip to content

Commit 60d9563

Browse files
committed
fix(Editor): fix TS errors for data url imports
1 parent 5644cb0 commit 60d9563

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/livecodes/editor/monaco/monaco.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ export const createEditor = async (options: EditorOptions): Promise<CodeEditor>
414414
if (editorId !== 'script') return;
415415
const declarations = `
416416
declare module 'https://*';
417+
declare module 'data:*';
417418
declare module './*';
418419
`;
419420
getOrCreateModel(declarations, undefined, monaco.Uri.parse('file:///declarations.d.ts'));

0 commit comments

Comments
 (0)