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
Overwrite<Obj, Props>
Roughly this:
type Overwrite<Obj extends {}, Props extends {}> = Omit<Obj, keyof Props> & Props;
To be used like so:
type Foo = { a: string, b: number, } type Bar = Overwrite<Foo, { b: string, }> // Bar == { a: string, b: string }
This exists in utility-types.
utility-types
The text was updated successfully, but these errors were encountered:
Isn't this the same as Merge?
Merge
Sorry, something went wrong.
Ah, so it is! My mistake. Thank you!
No branches or pull requests
Roughly this:
To be used like so:
This exists in
utility-types
.The text was updated successfully, but these errors were encountered: