Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

unknownify/unknownify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

unknownify

Replace any with unknown on type definitions for built-in ECMAScript APIs

Installation

Add unknownify to devDependencies of your project.

npm i -D unknownify

Usage

Add type definition file to your project.

/// <reference path="path/to/node_modules/unknownify/lib/lib.d.ts" />
// Or, specify type definition files you want to use
/// <reference path="path/to/node_modules/unknownify/lib/lib.es5.d.ts" />

Don't forget to override the path to match the directory structure of your project.