Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

tsconfig.json does not restrict DOM types #55

Open
RA80533 opened this issue Jun 13, 2021 · 0 comments
Open

tsconfig.json does not restrict DOM types #55

RA80533 opened this issue Jun 13, 2021 · 0 comments

Comments

@RA80533
Copy link

RA80533 commented Jun 13, 2021

The lib compiler option is used to tell the TypeScript compiler which APIs will be available at runtime in the environment that will execute the transpired code. By default, lib will include type definitions for the DOM in addition to APIs corresponding to whatever level ECMAScript the target environment is expected to be (sourced from the target property).

The project tsconfig.json file should be updated with its lib property configured to whatever ECMAScript version is being targeted in order to override the default inclusion of DOM APIs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant