You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TS exposes custom transformers through the public API, so it should be possible to create generates purely from a type alias. I've done something like before with babel as Flow.
import{fromType}from'kitimat-type-to-gen';constperson=fromType<Person>();// would expand to something like...constkitimat=require('kitimat-jest');constperson=kitimat.object<Person>({name: kitimat.string(),age: kitimat.posInt(),// ... etc});
The text was updated successfully, but these errors were encountered:
TS exposes custom transformers through the public API, so it should be possible to create generates purely from a type alias. I've done something like before with babel as Flow.
The text was updated successfully, but these errors were encountered: