UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

16 lines (15 loc) 344 B
/** Update the fields of `O` with the ones of `O1` (only the existing fields will be updated) @param O to update @param O1 to update with @returns [[Object]] @example ```ts ``` */ export type Overwrite<O extends object, O1 extends object> = { [K in keyof O]: K extends keyof O1 ? O1[K] : O[K] } & {}