npm.io
0.4.0 • Published 23h ago

strict-ts-lib-v5.6

Licence
Apache-2.0
Version
0.4.0
Deps
0
Vulns
0
Weekly
0

strict-ts-lib-v5.6

Strict rewrite of TypeScript 5.6.3's built-in standard library declarations, distributed as a GitHub Release tarball (no npm registry, no auth).

npm install -D https://github.com/noshiro-pf/strict-typescript-lib/releases/download/dist-v5.6-0.4.0/strict-ts-lib-v5.6-0.4.0.tgz

Every built-in library ships inside this one package, under libs/. Point TypeScript at them from your tsconfig.json:

{
    "compilerOptions": {
        "libReplacement": true, // TypeScript 6.0 and later
        "paths": {
            "@typescript/lib-*": ["./node_modules/strict-ts-lib-v5.6/libs/*"],
        },
    },
}

paths is replaced, not merged, by a config that extends another, so it has to be written in whichever config TypeScript actually loads.

See https://github.com/noshiro-pf/strict-typescript-lib for usage and version support.