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

Suggestion: Add "lib" reference directive #15732

Closed
rbuckton opened this issue May 10, 2017 · 0 comments · Fixed by #23893
Closed

Suggestion: Add "lib" reference directive #15732

rbuckton opened this issue May 10, 2017 · 0 comments · Fixed by #23893
Labels
Fixed A PR has been merged for this issue Suggestion An idea for TypeScript

Comments

@rbuckton
Copy link
Member

rbuckton commented May 10, 2017

Following discussion at DefinitelyTyped/DefinitelyTyped#15140, it seems that we might benefit from adding a new lib reference directive similar to the types reference directive we have today. The lib reference directive would allow an individual file to specify one or more lib files to include when the file is included.

Example

/// <reference lib="es2015, dom" />

This would allow individuals using @types/core-js (or any other polyfill/shim library) to automatically get the correct types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed A PR has been merged for this issue Suggestion An idea for TypeScript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants