Skip to content

Commit b908822

Browse files
committed
fix: types
1 parent 2735be4 commit b908822

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

backend/modelscope_studio/components/pro/monaco_editor/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def __init__(
6767
**kwargs)
6868
self.line = line
6969
self.loading = loading
70-
print('loader', ModelScopeProMonacoEditor.LOADER)
7170
self._loader = ModelScopeProMonacoEditor.LOADER
7271
self.override_services = override_services
7372
self.options = options

frontend/fixtures.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
declare module 'virtual:component-loader' {
22
export const load_component;
33
}
4+
5+
declare module '*?worker' {
6+
const workerConstructor: {
7+
new (options?: { name?: string }): Worker;
8+
};
9+
export default workerConstructor;
10+
}
411
declare module '*?inline' {
512
const string: string;
613
export default string;

frontend/svelte-preprocess-react/sveltify.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ export function sveltify<P, const S extends readonly string[] = []>(
8787
}
8888

8989
return new Promise((resolve) => {
90+
if (!window.ms_globals.initializePromise) {
91+
window.ms_globals.initializePromise = new Promise((r) => {
92+
window.ms_globals.initialize = () => {
93+
r();
94+
};
95+
});
96+
}
9097
window.ms_globals.initializePromise.then(() => {
9198
resolve(Sveltified as any);
9299
});

0 commit comments

Comments
 (0)