source: node_modules/ts-toolbelt/out/Object/Overwrite.d.ts

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 339 bytes
Line 
1/**
2 * Update the fields of `O` with the ones of `O1`
3 * (only the existing fields will be updated)
4 * @param O to update
5 * @param O1 to update with
6 * @returns [[Object]]
7 * @example
8 * ```ts
9 * ```
10 */
11export declare type Overwrite<O extends object, O1 extends object> = {
12 [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
13} & {};
Note: See TracBrowser for help on using the repository browser.