@xylabs/tsconfig-dom
v7.10.4
Published
Typescript Base Config used throughout XY Labs TypeScript/JavaScript libraries and react projects
Downloads
13,859
Readme
@xylabs/tsconfig-dom
Typescript Base Config used throughout XY Labs TypeScript/JavaScript libraries and react projects
Install
Using npm:
npm install -D {{name}} @xylabs/tsconfigUsing yarn:
yarn add -D {{name}} @xylabs/tsconfigUsing pnpm:
pnpm add -D {{name}} @xylabs/tsconfigUsage
Extend this config in your project's tsconfig.json:
{
"extends": "@xylabs/tsconfig-dom",
"compilerOptions": {
"outDir": "./dist"
},
"include": ["src"]
}This extends @xylabs/tsconfig and adds DOM and DOM.Iterable to the lib array, making browser APIs like window, document, and DOM iterables available.
For React projects, use @xylabs/tsconfig-react which extends this config with JSX support.
License
See the LICENSE file for license rights and limitations (LGPL-3.0-only).
