-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Add an option to skip ///<reference> check on d.ts files #9945
Comments
I'd image that any error originating form a lib definition will be surpressed with |
@basarat I think some people still want to ensure that they have all required files so that they do not meet unexpected I would like it, however :D |
Isn't this basically the same as |
I want to resolve existing modules and ignore others. However, probably I will now just use |
My recommendation is to not use |
Related SO: http://stackoverflow.com/questions/38567936/can-typescript-module-reference-chain-be-ignored
Some libraries have jQuery or node.js support on them and the corresponding type definitions have references to jquery.d.ts and node.d.ts.
Below is an example with jsdom.d.ts:
I want to skip node.d.ts and jquery.d.ts as I don't need them. Just excluding those files from project raises
TS2304 Cannot find name
,TS2503 Cannot find namespace
, andTS6053 File not found
.--skipLibCheck
on TS 2.0 Suppresses TS2304 and TS2503 but not TS6053, so I want a new option to also suppress TS6053.The text was updated successfully, but these errors were encountered: