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

tsconfig: noDom option to exclude DOM APIs? #5585

Closed
bpasero opened this issue Nov 10, 2015 · 1 comment
Closed

tsconfig: noDom option to exclude DOM APIs? #5585

bpasero opened this issue Nov 10, 2015 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@bpasero
Copy link
Member

bpasero commented Nov 10, 2015

I would like to use TS in an environment where there is no DOM (e.g. node.js). If I leave the default options of tsconfig.json on, I still get completions for DOM related members like "window".

I can turn this off by setting noLib: true in the tsconfig.json but then I have to manually include all d.ts files, even from ECMAScript.

Is there any way I can tell TS to not include DOM APIs?

@mhegazy
Copy link
Contributor

mhegazy commented Nov 10, 2015

this is tracked by #4168.

For now, if you include lib.core.d.ts explicitly in your project, it should do the trick.

@mhegazy mhegazy added the Duplicate An existing issue was already created label Nov 10, 2015
@mhegazy mhegazy closed this as completed Nov 10, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants