1.2.0 • Published 7 years ago
known-types v1.2.0
known-types
This is a package that hold common types and utility functions for build typescript project and interfaces.
For example:
import {IMap, createMap} from 'known-types'
const map: IMap<string> = createMap({init: '1', 2: '2'})
console.log(map['init'], map['2'])
Supported types
ANY
: the type isany
, and value isundefined
NULL
: the value and type both arenull
IMap
: the structure is:interface IMap<T> { [key: number]: T; [key: string]: T; }
More detailed information please download this project by npm install known-types
.
LICENSE
MIT