mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
Remove declare modifiers (microsoft/monaco-editor#2121)
This commit is contained in:
parent
8a4357c301
commit
a1c30dff82
2 changed files with 2 additions and 2 deletions
2
monaco.d.ts
vendored
2
monaco.d.ts
vendored
|
|
@ -45,7 +45,7 @@ declare namespace monaco.languages.typescript {
|
|||
interface MapLike<T> {
|
||||
[index: string]: T;
|
||||
}
|
||||
declare type CompilerOptionsValue =
|
||||
type CompilerOptionsValue =
|
||||
| string
|
||||
| number
|
||||
| boolean
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ for (let line of lines) {
|
|||
continue;
|
||||
}
|
||||
line = line.replace(/ /g, '\t');
|
||||
line = line.replace(/export declare/g, 'export');
|
||||
line = line.replace(/declare /g, '');
|
||||
if (line.length > 0) {
|
||||
line = `\t${line}`;
|
||||
result.push(line);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue