Creates a type that is a partial of T, but with the required keys K.
PartialBy<{ a: string, b: number } | { a: string, b: undefined, c: number }, 'a'>=> { a?: string, b: number } | { a?: string, b: undefined, c: number } Copy
PartialBy<{ a: string, b: number } | { a: string, b: undefined, c: number }, 'a'>=> { a?: string, b: number } | { a?: string, b: undefined, c: number }
Generated using TypeDoc
Description
Creates a type that is a partial of T, but with the required keys K.
Example