zod-openapi icon indicating copy to clipboard operation
zod-openapi copied to clipboard

Find a nicer way to deal with versions

Open samchungy opened this issue 1 year ago • 1 comments

Since we are piping around the state object. We can potentially use that as a generic typeguard for when to use 3.1 vs 3.0 types

samchungy avatar May 03 '23 10:05 samchungy

Thought of using conditional return types but that doesn't look possible:

https://github.com/microsoft/TypeScript/issues/33014

samchungy avatar May 05 '23 12:05 samchungy