Open PeterMK85 opened 1 year ago
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
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