Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Use "lib" instead of "target" for DefinitelyTyped tsconfig #28

Merged
merged 1 commit into from
Jan 18, 2017

Conversation

ghost
Copy link

@ghost ghost commented Jan 18, 2017

Updating now that DefinitelyTyped/DefinitelyTyped#13968 is in.

@winksaville
Copy link

@andy-ms may I ask why its preferred to use lib instead of target? Is there some documentation on when one or the other should be chosen?

@ghost
Copy link
Author

ghost commented Mar 7, 2017

Since we're not actually emitting code for these tests there's no need for a target. "lib" gives you more fine-grained control over what libraries get included; a non-web library should not include the "dom" lib.

If you're writing a normal TypeScript project, you don't have to choose between them. You should generally always set "target", and you can set "lib" if either you don't want "dom" typings, or you want to include some lib that isn't on by default.

@winksaville
Copy link

Got it, TYVM.

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.

None yet

2 participants