From a1c30dff825d968a5f9aa414c4866dfb3cd3f872 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Fri, 11 Sep 2020 12:56:24 +0200 Subject: [PATCH] Remove declare modifiers (microsoft/monaco-editor#2121) --- monaco.d.ts | 2 +- scripts/dts.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/monaco.d.ts b/monaco.d.ts index 57e5774..de0557b 100644 --- a/monaco.d.ts +++ b/monaco.d.ts @@ -45,7 +45,7 @@ declare namespace monaco.languages.typescript { interface MapLike { [index: string]: T; } - declare type CompilerOptionsValue = + type CompilerOptionsValue = | string | number | boolean diff --git a/scripts/dts.js b/scripts/dts.js index a89a9db..8637cf6 100644 --- a/scripts/dts.js +++ b/scripts/dts.js @@ -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);