Creates a type where specified keys K of T are made optional. The resulting type is a merged intersection for better readability.
K
T
The original type.
The keys to make optional.
A new type with keys K made optional.
type Data = { a: number; b: string; c: boolean };type PartiallyPartialData = PartiallyPartial<Data, 'a' | 'b'>;// Result: { a?: number; b?: string; c: boolean } Copy
type Data = { a: number; b: string; c: boolean };type PartiallyPartialData = PartiallyPartial<Data, 'a' | 'b'>;// Result: { a?: number; b?: string; c: boolean }
Creates a type where specified keys
KofTare made optional. The resulting type is a merged intersection for better readability.