iliubinskii / types-fix

Types fix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Types fix

Stars Downloads Dependencies

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"
    ]
  }
}

About

Types fix

License:ISC License


Languages

Language:JavaScript 58.5%Language:Shell 41.5%