Very initial impressions of Typescript

published Jan 31, 2016 02:25   by admin ( last modified Jan 31, 2016 02:23 )

I'm looking at Typescript in Node.js and here are some very initial impressions:

Explicit typing - It gives types such as numbers and strings, but I would like to have hex, integers of a certain length, base58 and such as types. That would give more precision in defining what it is that I want. It may be a better idea for me to look at JSON schema instead.

Since typing is not checked at run time, you cannot catch problems with wrong types in incoming data. It would be very nice to have some marshalling/validation of that data. Again, JSON schema may come to the rescue: JSON validating libraries for promise chains — jorgenmodin.net