babel-plugin-tcomb icon indicating copy to clipboard operation
babel-plugin-tcomb copied to clipboard

Definition file for tcomb

Open gcanti opened this issue 9 years ago • 7 comments

The new version (v0.3) of this plugin will require a definition file in order to exploit refinements and runtime type introspection.

I'm working on a first draft but I'm not sure what's the best practice. Where can I put the definition file?

  • tcomb's' repo
  • this repo
  • a new dedicated repo

gcanti avatar Jun 09 '16 15:06 gcanti

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

gcanti avatar Jun 12 '16 07:06 gcanti

The flow-typed repo seems to be emerging as a collection of declaration files.

https://github.com/flowtype/flow-typed

volkanunsal avatar Jun 16 '16 17:06 volkanunsal

There is also this one https://github.com/marudor/flowInterfaces

ctrlplusb avatar Jun 22 '16 18:06 ctrlplusb

Having used flow for a few weeks now I defo think we should consider putting the definitions in the flow-typed repo as suggested by @volkanunsal. It looks like it is maintained by the official Facebook Flow team and will become _the_ store for definitions.

Will be great for exposure too perhaps?

ctrlplusb avatar Jul 14 '16 09:07 ctrlplusb

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

gcanti avatar Jul 14 '16 09:07 gcanti

Definitely should go into the https://github.com/flowtype/flow-typed, or be built-in directly into the tcomb itself.

Btw, are https://github.com/gcanti/pantarei/tree/master/tcomb/3.x.x-0.33.x still actual for the latest tcomb?

ArmorDarks avatar Oct 09 '18 22:10 ArmorDarks

Seems to not work with Flow 0.83.

image

Does anyone happen to have actual types for Flow .80+?

ArmorDarks avatar Oct 12 '18 13:10 ArmorDarks