Skip to content

Latest commit

 

History

History
66 lines (47 loc) · 832 Bytes

myREADME.md

File metadata and controls

66 lines (47 loc) · 832 Bytes

Fixes and improves TypeScript types.

Usage

It's also recommended to install @total-typescript/ts-reset as dev dependency.

#1 Full (recommended)

tsconfig.json:

"compilerOptions": {
  "types": [
    "@types/node",
    "@total-typescript/ts-reset",
    "@arthurka/ts-reset",
  ],
},

#2 Also full usage

tsconfig.json:

"compilerOptions": {
  "include": [
    "src",
  ],
},

src/custom.d.ts:

import '@total-typescript/ts-reset';
import '<pkg.name>';

#3 Partial usage

tsconfig.json:

"compilerOptions": {
  "include": [
    "src",
  ],
},

src/custom.d.ts:

import '@total-typescript/ts-reset/dist/filter-boolean';
import '<pkg.name>/dist/Fetch';
import '<pkg.name>/dist/Boolean';