Alias for PartiallyPartial. Creates a type where specified keys K of T are made optional.
PartiallyPartial
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 PartiallyOptionalData = PartiallyOptional<Data, 'a' | 'b'>;// Result: { a?: number; b?: string; c: boolean } Copy
type Data = { a: number; b: string; c: boolean };type PartiallyOptionalData = PartiallyOptional<Data, 'a' | 'b'>;// Result: { a?: number; b?: string; c: boolean }
Alias for
PartiallyPartial. Creates a type where specified keysKofTare made optional.