Hacker GitHub

← All repos

gcanti/io-ts

View on GitHub ↗ ★ 6,810 TypeScript

Runtime type system for IO decoding/encoding

61 mentions on Hacker News by 40 people: 2 stories, 59 comments · first 2017-04-12 · latest 2022-09-23

Mentions per year 61 mentions · busiest year 2020 (23)
20082026
  1. …so in most cases there is no duplication of information between runtime type and static type. [1] https://github.com/gcanti/io-ts
    comment by lf-non · 2019-01-23 · in TypeScript Tricks: Type Guards
  2. …and there’s a lot less pointless type check unit tests due to the guarantee’s it gives us. io-ts ( https://github.com/gcanti/io-ts ) around rest endpoints checking json input as well has been a godsend.
    comment by bazza451 · 2018-09-02 · in TypeScript at Google
  3. …with the design goals of TS, but check out io-ts[0] for a library approach to this problem. [0] https://github.com/gcanti/io-ts
    comment by Stoids · 2018-07-30 · in Announcing TypeScript 3.0
  4. …mostly true, but some projects exist that allow a subset of interfaces to 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…
    comment by zbentley · 2018-02-18 · in JSON Schema
  5. …a limited assertion facility, but it's not nearly as capable as JSON-schema. Projects like io-ts ( https://github.com/gcanti/io-ts ) add more functionality to those assertions, but they're still much less easy to use, in my opinion, than…
    comment by zbentley · 2018-02-18 · in JSON Schema
  6. You might be interested in this: https://github.com/gcanti/io-ts and many related projects by Giulio.
  7. …bit of work in this area that leverages Flow type 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…
  8. You could write the runtime definition and extract the static types from that https://github.com/gcanti/io-ts
    comment by gcanti · 2017-04-12 · in TypeScript at Slack
  9. This is a TypeScript compatible runtime type system for IO validation https://github.com/gcanti/io-ts
    comment by gcanti · 2017-04-12 · in TypeScript at Slack