strict-ts-lib-v7.0
v0.6.2
Published
Strict TypeScript 7.0.2 standard library (all libs in one package)
Readme
strict-ts-lib-v7.0
Strict rewrite of TypeScript 7.0.2's built-in standard library declarations.
npm install -D strict-ts-lib-v7.0Every built-in library ships inside this one package, in two flavors:
libs/— plainnumberlibs-branded/— branded number types (Uint8,SafeUint, …)
Point paths at the one you want, in your tsconfig.json:
{
"compilerOptions": {
"libReplacement": true,
"paths": {
"@typescript/lib-*": ["./node_modules/strict-ts-lib-v7.0/libs/*"],
},
},
}Two things to watch, because both fail silently — the replacement simply does not happen, with no error:
pathsis replaced, not merged, by a config thatextendsanother, so it has to be written in whichever config TypeScript actually loads.- The path is relative to the config that contains it, which in a
monorepo package is usually
../../node_modules/….
See https://github.com/noshiro-pf/mono for usage and version support.
