Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct SourceMap/Options TypeScript definitions #124

Merged
merged 2 commits into from Jul 7, 2017
Merged

Correct SourceMap/Options TypeScript definitions #124

merged 2 commits into from Jul 7, 2017

Conversation

AviVahl
Copy link
Contributor

@AviVahl AviVahl commented Jun 6, 2017

SourceMapOptions does not include most of SourceMap's keys.
source was also missing and added.
In addition, SourceMap is now an interface so that TypeScript won't let user code to use it with new (it's not being exported from main)

SourceMapOptions does not include most of SourceMap's keys.
In addition, SourceMap's constructor receives a SourceMap type, for initializing the instance.
this way TypeScript enforces that its not used as a constructor in user code.
@AviVahl
Copy link
Contributor Author

AviVahl commented Jun 22, 2017

Hey @Rich-Harris, can you check this out? :)

@Rich-Harris Rich-Harris merged commit 60dc9b1 into Rich-Harris:master Jul 7, 2017
@Rich-Harris
Copy link
Owner

Sorry, just saw this — thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants