I think publishing genType
output might be a good idea. I’ve done it for rescript-schema
to make the users life easier https://github.com/DZakh/rescript-schema/blob/main/RescriptSchema.gen.ts.
There are two things to note:
- GenType is not really supported with custom namespaces, so I had to write the file manually (I’m not sure whether it’s already changed)
- Since only the types are used, we can keep only them, omitting all the values from the
.gen.ts