|
|
|
|
|
by aabbcc1241
1003 days ago
|
|
You may try cast.ts. It is similar to zod but the parser has .type property which expose the typescript type of the validator, and .sampleValue property which expose a sample value. So you can access the metadata at runtime, which can be reused by other tools like yours. |
|