gcanti/tcomb
View on GitHub ↗ ★ 1,877 JavaScript archived
Type checking and DDD for JavaScript
15 mentions on Hacker News by 9 people: 2 stories, 13 comments · first 2014-09-08 · latest 2018-08-08
20082026
-
How does this differ from something like https://github.com/gcanti/tcomb ?
comment by acemarke · 2018-08-08 · in Show HN: Jtype – a rudimentary type system for JavaScript -
There's a fair 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…
comment by phpnode · 2017-04-22 · in Forall.js: Idris-like static types and invariant checks for JavaScript -
…out: tcomb[0] which can let you use your Flow types at runtime for eg; pattern matching. [0] https://github.com/gcanti/tcomb
comment by rattray · 2016-11-30 · in Show HN: js.spec, a JavaScript implementation of clojure.spec -
…(bonus point: is Flow compatible) 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) -
…depending on your use case), you also get pseudo-immutability on your Tcomb structs for free. [0] https://github.com/gcanti/tcomb
comment by dandelany · 2016-05-19 · in Specifying JSON -
…hooked on the idea of having a type safe data record that was also immutable Me too, thus I wrote https://github.com/gcanti/tcomb
comment by gcanti · 2016-03-06 · in The hunt for an immutable, type safe data record in JavaScript -
Shameless plug: https://github.com/gcanti/tcomb . Used in development/production in several places, included the new MapBox Studio
comment by gcanti · 2015-11-29 · in Must-See JavaScript Dev Tools -
Hi, shameless plug: another ( typed ) immutable data structure library, https://github.com/gcanti/tcomb . Main features: - works with regular objects and arrays - runtime type checks - easy debugging with Chrome DevTools - immutability and…
comment by gcanti · 2015-10-05 · in Immutable Data Structures and JavaScript -
Did you take a look at tcomb[0]? [0] https://github.com/gcanti/tcomb
comment by user1241320 · 2015-09-24 · in Why we’re no longer using Core.typed -
…one of the parens in your link, which is messing it up. Here's a pristine version for the lazy: https://github.com/gcanti/tcomb
comment by actsasbuffoon · 2014-10-31 · in The Two Pillars of JavaScript -
…sugar and complexity, ES7 will adopt macros ( http://sweetjs.org/ ) and a type system (e.g tcomb ( https://github.com/gcanti/tcomb )).
comment by clusterfoo · 2014-10-31 · in The Two Pillars of JavaScript -
…order types. Shameless plug: I wrote a similar library based on set theory (I'm a mathematician) https://github.com/gcanti/tcomb EDIT: and here an article explaining the rationale behind the library https://gcanti.github.io/2014/09/29/javas…
comment by gcanti · 2014-10-24 · in AtScript Primer -
…runtime type checking based on type combinators [1], check it out, we can share some ideas. [1] https://github.com/gcanti/tcomb
comment by gcanti · 2014-09-08 · in Show HN: Taxa – A tiny language inside JavaScript to enforce type signatures