ts-type-guard

0.0.2 • Public • Published

type-guard

Typescript's type guard utils.

install

npm install ts-type-guard

ts-type-guard is a type checking package based on typescript. This package use type-gurard feature to implement more usefull type checking.

examples

import {isString} from 'ts-type-guard'
 
const str = 'foo'
 
if(isString(str)) {
    consol.log(str.concat(str))
}

Readme

Keywords

Package Sidebar

Install

npm i ts-type-guard

Weekly Downloads

2

Version

0.0.2

License

ISC

Unpacked Size

10.5 kB

Total Files

8

Last publish

Collaborators

  • jonathanleelx