We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The augment to the library is no longer able to correctly infer the contentType generated by openapi-typescript.
contentType
openapi-typescript
import { components } from '@/openapi/umbraco'; type ApiBlockItemModel = components['schemas']['ApiBlockItemModel']; declare module '@charlietango/react-umbraco' { interface UmbracoBlockItemModel extends ApiBlockItemModel {} }
Error
app/components/RichText.tsx:37:20 - error TS2339: Property 'contentType' does not exist on type '{ id: string; properties: { [key: string]: unknown; }; }'. 37 switch (content?.contentType) { ~~~~~~~~~~~
It correctly augment the type, but it's unable to narrow contentType.
The text was updated successfully, but these errors were encountered:
This might be related to using an older verision of openapi-typescript
Sorry, something went wrong.
No branches or pull requests
The augment to the library is no longer able to correctly infer the
contentType
generated byopenapi-typescript
.Error
It correctly augment the type, but it's unable to narrow
contentType
.The text was updated successfully, but these errors were encountered: