Skip to content

Fix #16367: remove const modifier from tsserverlibrary.d.ts#16381

Merged
mhegazy merged 2 commits into
masterfrom
Fix16367
Jun 9, 2017
Merged

Fix #16367: remove const modifier from tsserverlibrary.d.ts#16381
mhegazy merged 2 commits into
masterfrom
Fix16367

Conversation

@mhegazy
Copy link
Copy Markdown
Contributor

@mhegazy mhegazy commented Jun 8, 2017

just like we do with typescript.d.ts

Comment thread Jakefile.js Outdated
fs.readFileSync(tsserverLibraryDefinitionFile).toString() +
"\r\nexport = ts;" +
"\r\nexport as namespace ts;";
tsserverLibraryDefinitionFileContents = tsserverLibraryDefinitionFileContents.replace(/^(\s*)(export )?const enum (\S+) {(\s*)$/gm, '$1$2enum $3 {$4');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put the regexp in one location to ensure that any modifications are synchronized?

@mhegazy mhegazy merged commit 1a1d5ea into master Jun 9, 2017
@mhegazy mhegazy deleted the Fix16367 branch June 9, 2017 00:19
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants