astahmer / typed-openapi

Generate a headless Typescript API client from an OpenAPI spec
https://typed-openapi-web.vercel.app/
200 stars 23 forks source link

zod-runtime: add typecast to ApiClient methods, fix #12 #20

Closed nilshartmann closed 10 months ago

nilshartmann commented 10 months ago

As discussed in https://github.com/astahmer/typed-openapi/issues/12#issuecomment-1866742960 this adds a typecast to the desired return type in the ApiClient methods when runtime is zod.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
typed-openapi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 22, 2023 7:05am