gcanti/babel-plugin-tcomb
View on GitHub ↗ ★ 478 JavaScript archived
Babel plugin for static and runtime type checking using Flow and tcomb
7 mentions on Hacker News by 4 people: 2 stories, 5 comments · first 2016-06-17 · latest 2018-09-02
20082026
-
…to work with. With 3.0 they also improved error messages. EDIT: one thing I miss from flow is https://github.com/gcanti/babel-plugin-tcomb - it's quite handy to spot data errors (before you have big static coverage)
comment by machiaweliczny · 2018-09-02 · in TypeScript at Google -
This is really neat! You may want to also look at https://github.com/gcanti/babel-plugin-tcomb for some inspiration- I've used tcomb extensively for runtime ADT and typing, but using just Flow would be an interesting challenge!
comment by zdragnar · 2016-10-03 · in Runtime Introspection of Flow Types in JS -
…and more active (typescript stuff tends to come down from On High). For instance, you can use https://github.com/gcanti/babel-plugin-tcomb to get run-time type checking with babel/flow for free. That's really cool! Unfortunately, the same…
comment by easong · 2016-09-22 · in Announcing TypeScript 2.0 -
…in order to deal with those cumbersome runtime type checks. [1] https://github.com/gcanti/tcomb [2] https://github.com/gcanti/babel-plugin-tcomb
comment by gcanti · 2016-07-16 · in Maintainable JavaScript (2014) -
…even more gradual. At the end of the process you get both static and runtime type safety. [1] https://github.com/gcanti/babel-plugin-tcomb
comment by gcanti · 2016-06-17 · in Migrating a 10,000-line legacy JavaScript codebase to TypeScript