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

Suggestion: Add feature-complete table showing flow syntax => tcomb syntax to README

Open chrisui opened this issue 8 years ago • 3 comments

I believe this would aid people in understanding the inner guts of how this works as well as the interop between flow and tcomb functionality.

Eg.

type MyString = string;
=> const MyString = t.String;
type MyRecord = {myString: string};
=> const MyRecord = t.interface({myString: t.String});

chrisui avatar Jul 04 '16 22:07 chrisui

Also sharing an up-to-date ASTExplorer session for people to play around would be awesome.

Eg. https://astexplorer.net/#/dKZROdJGUy

chrisui avatar Jul 04 '16 22:07 chrisui

I would actually take the time to contribute this table but I'm on holiday for a few weeks from tomorrow so just wanted to share the idea! :)

chrisui avatar Jul 04 '16 22:07 chrisui

Nice! Thanks for the suggestion

gcanti avatar Jul 05 '16 04:07 gcanti