valentinkononov / ts-runtime-checker

Runtime Checks for Typescript projects
MIT License
8 stars 1 forks source link

Use TypeError rather than Error #19

Closed wSedlacek closed 3 years ago

wSedlacek commented 4 years ago

JavaScript had a built in TypeError which would be more expressive then a generic Error. It would be nice if this was used instead.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError

valentinkononov commented 3 years ago

special thanks for that, the feature is available from version 0.1.5 of library!