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
I am experiencing an incorrect typing issue in TypeScript when using Omit on an interface that inherits properties from a grandparent interface.
Steps to Reproduce
optional property
Omit
#Code Example
interface Grandparent { a?: string } interface Parent extends Grandparent { b: string } export type Child = Omit<Parent, 'b'>
{ "definitions": { "Child": { "properties": { "a": {} }, "required": [ "a" ], } } }
The grandparent property should be correctly typed and not be required
correctly typed
not be required
{ "definitions": { "Child": { "properties": { "a": { "type": "string" } } } } }
The text was updated successfully, but these errors were encountered:
I have the same issue🙁
Sorry, something went wrong.
Hi! Thanks for the bug report, would you want to open a PR to address this? Remember to add unit tests.
No branches or pull requests
I am experiencing an incorrect typing issue in TypeScript when using Omit on an interface that inherits properties from a grandparent interface.
Steps to Reproduce
optional property
.Omit
to exclude a property from the parent interface.#Code Example
Generated output
Expected Behavior
The grandparent property should be
correctly typed
andnot be required
The text was updated successfully, but these errors were encountered: