Hacker GitHub

← All repos

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

Mentions per year 6 mentions · busiest year 2017 (4)
20082026
  1. …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
  2. …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…
  3. …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/
  4. (can't edit my post any more) I made a plugin to do this here - https://github.com/codemix/flow-runtime/tree/master/packages...
  5. …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:…
  6. …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