Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1942

How to make genType work nice with built-in/standard types?

$
0
0

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:

  1. 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)
  2. Since only the types are used, we can keep only them, omitting all the values from the .gen.ts

Viewing all articles
Browse latest Browse all 1942

Trending Articles