Skip to content

Baseline public API#18897

Merged
weswigham merged 10 commits into
microsoft:masterfrom
weswigham:baseline-public-api
Oct 3, 2017
Merged

Baseline public API#18897
weswigham merged 10 commits into
microsoft:masterfrom
weswigham:baseline-public-api

Conversation

@weswigham
Copy link
Copy Markdown
Member

This adds unit tests which baseline our public API. This should help us be conscious of what is added or removed to it, as a test will fail until you accept the change.

Comment thread Gulpfile.ts Outdated
dts.pipe(prependCopyright(/*outputCopyright*/ true))
.pipe(insert.transform((content) => {
return content + "\r\nexport = ts;\r\nexport as namespace ts;";
return content.replace(/^(\s*)(export )?const enum (\S+) {(\s*)$/gm, "$1$2enum $3 {$4") + "\nexport = ts;\nexport as namespace ts;";
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.

This regex deserves a comment

@weswigham weswigham merged commit 7f7d0c6 into microsoft:master Oct 3, 2017
@weswigham weswigham deleted the baseline-public-api branch October 3, 2017 00:37
@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.

2 participants