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
Describe the bug With --export-types options the following declarations:
--export-types
Order: type: object additionalProperties: type: string
!Note: no properties defined
properties
Will evaluate to:
type Order = {}
I think it should be: Easy fix:
type Order = {[key: string]: string}
Or
type Order = Record<string, string>
As a workaround, I tried the following:
Order: type: object properties: {} additionalProperties: type: string
Which yields to:
type Order = Partial<{} & {[key: string]: string}>
Minimal reproduction Online example (Modified the Order)
Order
Expected behavior I have a local patch to make it work I will open a PR today.
Additional context Rootcause
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
With
--export-types
options the following declarations:!Note: no
properties
definedWill evaluate to:
I think it should be:
Easy fix:
Or
As a workaround, I tried the following:
Which yields to:
Minimal reproduction
Online example
(Modified the
Order
)Expected behavior
I have a local patch to make it work I will open a PR today.
Additional context
Rootcause
The text was updated successfully, but these errors were encountered: