ts-is
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.
; ;isVectorthree // returns false; ;ifisVectoraVector
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 = ;const is = ;;;
Good luck and I hope this is usefull for you! (: