1.0.7 • Published 3 months ago
types-fix v1.0.7
Types fix
Table of contents
Overview
This package fixes some global types (currently it contains one fix — see below).
Installation
npm install --save-dev types-fix
TypeScript any-to-unknown
This fix replaces any with unknown in some TypeScript core types. Use it for better type checking.
Configuration
// tsconfig.json
{
"compilerOptions": {
"typeRoots": [
"node_modules/@types",
"node_modules/types-fix"
],
"types": [
"typescript-any-to-unknown"
]
}
}