Utility for typescript typechecking.

What is it?

Exports a single func is which has the following type notation:

declare ;

I use it often to create typeChecking functions for my typescript projects. For example if I have a vector class.

type Vector { ; ; } ; ; isVector ( three ) ; if ( isVector ( aVector ) ) { }

How do I use it?

Start by installing it in your project.

npm install --save ts-is

then any of the following should work

const is = require ( ' ts-is ' ) ; const { is } = require ( ' ts-is ' ) ; import is from ' ts-is ' ; import { is } from ' ts-is ' ;

Good luck and I hope this is usefull for you! (: