gajus/flow-runtime
View on GitHub ↗ ★ 796 JavaScript
A runtime type system for JavaScript with full Flow compatibility.
6 mentions on Hacker News by 5 people: 0 stories, 6 comments · first 2017-04-08 · latest 2018-02-18
20082026
-
…be used at runtime: - https://github.com/gcanti/io-ts - https://github.com/fabiandev/ts-runtime - https://github.com/codemix/flow-runtime - Or just manual assertions: https://gist.github.com/JohnWeisz/beb7b4dadc512be30ce6c7c1e4...
comment by zbentley · 2018-02-18 · in JSON Schema -
…mixed = ... const validatedObject: YourTarget = (reify: Type<YourData>).assert(unknownObject) See https://github.com/codemix/flow-runtime/issues/150 and https://codemix.github.io/flow-runtime/#/docs/type-refinemen... The `reify` marker…
comment by aphexairlines · 2018-01-17 · in Convert React JavaScript Code to TypeScript with Proper Typing -
…pragmas so you can turn off assertions in production everywhere except in critical files. [0] https://github.com/codemix/flow-runtime [1] https://codemix.github.io/flow-runtime/
comment by TheAceOfHearts · 2017-07-26 · in “We will stop updating and distributing the Flash Player at the end of 2020” -
(can't edit my post any more) I made a plugin to do this here - https://github.com/codemix/flow-runtime/tree/master/packages...
comment by phpnode · 2017-05-03 · in Prepack helps make JavaScript code more efficient -
…syntax, e.g: - https://github.com/gcanti/tcomb - https://github.com/gcanti/io-ts (for typescript) - https://github.com/codemix/flow-runtime (i wrote this) And another alternative is to use Design by Contract, like Eiffel:…
comment by phpnode · 2017-04-22 · in Forall.js: Idris-like static types and invariant checks for JavaScript -
…This looks amazing! EDIT 2: flow-runtime also doesn't work with React Native: https://github.com/codemix/flow-runtime/issues/17 That's a shame. I might see if I can fix it, otherwise I'll just stick with compile-time checks for now.
comment by nathan_f77 · 2017-04-08 · in React v15.5.0