babel-plugin-tcomb
babel-plugin-tcomb copied to clipboard
Suggestion: Add feature-complete table showing flow syntax => tcomb syntax to README
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});
Also sharing an up-to-date ASTExplorer session for people to play around would be awesome.
Eg. https://astexplorer.net/#/dKZROdJGUy
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! :)
Nice! Thanks for the suggestion