Giulio Canti

Results 408 comments of Giulio Canti
trafficstars

Until we figure this out, I'll push my drafts here https://github.com/gcanti/pantarei/blob/master/tcomb/3.2.2%2B.js

Yeah, definitely. The current version still needs some adjustments, then we can send a PR.

Yes, `babel-plugin-tcomb` is more permissive than Flow in this regard. Basically there is the following equivalence ``` js { a?: string } { a: void | string } ``` Is...

I see. Currently there's no support in `tcomb` (the library this plugin builds on) for optional fields (`?` syntax). I wonder if your issue could be fixed by an explicit...

> If you want I can make a PR Ok, thanks

Flow allows for circular dependencies *at the type-level*. However babel-plugin-tcomb needs to reify those types at the value level so avoiding circular dependencies in the first place seems the best...

You can handle global type with the `globals` option https://github.com/gcanti/babel-plugin-tcomb#globals-arrayobject Discussion here https://github.com/gcanti/babel-plugin-tcomb/issues/56

> automatically include any types defined within https://github.com/facebook/flow/blob/master/lib/ It would be nice, but doesn't seem easy, what's your plan?

`flow/lib/react` is a libdef file, I'm not sure what you mean by "require the types and import them into the target file". Could you please elaborate a little more, maybe...

Not sure but I think [flow-runtime](https://github.com/codemix/flow-runtime) has the feature you are requesting /cc @phpnode