This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

known-types
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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 is any, and value is undefined
  • NULL: the value and type both are null
  • 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

Readme

Keywords

none

Package Sidebar

Install

npm i known-types

Weekly Downloads

122

Version

1.2.0

License

ISC

Last publish

Collaborators

  • acrazing