Closed ghost closed 7 years ago
@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?
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.
Got it, TYVM.
Updating now that DefinitelyTyped/DefinitelyTyped#13968 is in.