Re:TypeScript 1.4 sneak peek: union types, type guards, and ...
by codygman on Thursday November 20, 2014 @12:57AM
(#8634609)
I believe they can be very easily used if they are CommonJS modules? I'm not sure, but I'm almost positive the amazing Purescript Book[0] has an answer for you.
0: https://leanpub.com/purescript/read