You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many areas, changed out any with unknown (#769). See #554 for more explanation / context
🐛 Bugfixes
An old bug is now gone! openapi-typescript would incorrectly generate { [key: string]: unknown } for a type when it may have been a string or number. Now it will generate a more generic unknown type, unless it knows it’s dealing with an object for sure.
Now supports remote references ($ref: "remote.yaml#/components/schemas/User) 🎉 (#602)!
⚠️Breaking Changes
The Node.js API is now promise-based, and can no longer be run synchronously (a necessity because resolving remote schemas can never be synchronous). Other than that, there are no other breaking changes. CLI users are unaffected, and the types generated are backwards-compatible with previous versions.