http-client icon indicating copy to clipboard operation
http-client copied to clipboard

tsconfig.json does not restrict DOM types

Open RA80533 opened this issue 3 years ago • 0 comments

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.

RA80533 avatar Jun 13 '21 17:06 RA80533