mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-23 19:27:15 +00:00
Move extra monaco.d.ts content to the recipe file
This commit is contained in:
@@ -230,13 +230,7 @@ function toExternalDTS(contents) {
|
||||
}
|
||||
|
||||
if (line.indexOf('declare let MonacoEnvironment') === 0) {
|
||||
lines[i] = `declare global {
|
||||
let MonacoEnvironment: Environment | undefined;
|
||||
|
||||
interface Window {
|
||||
MonacoEnvironment?: monaco.Environment | undefined;
|
||||
}
|
||||
}`;
|
||||
lines[i] = `declare global {\n let MonacoEnvironment: Environment | undefined;\n}`;
|
||||
// lines[i] = line.replace('declare namespace monaco.', 'export namespace ');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
|
||||
declare let MonacoEnvironment: monaco.Environment | undefined;
|
||||
|
||||
interface Window {
|
||||
MonacoEnvironment?: monaco.Environment | undefined;
|
||||
}
|
||||
|
||||
declare namespace monaco {
|
||||
|
||||
export type Thenable<T> = PromiseLike<T>;
|
||||
|
||||
Reference in New Issue
Block a user