Skip to content

Commit

Permalink
Remove declare modifiers (microsoft/monaco-editor#2121)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima authored and Pierre Guillaume Herveou committed Sep 21, 2020
1 parent a273b29 commit 37341a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion monaco.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ declare namespace monaco.languages.typescript {
interface MapLike<T> {
[index: string]: T;
}
declare type CompilerOptionsValue =
type CompilerOptionsValue =
| string
| number
| boolean
Expand Down
2 changes: 1 addition & 1 deletion scripts/dts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 37341a2

Please sign in to comment.