Type Alias: Optional<Base, OptionalKeys>
type Optional<Base, OptionalKeys> = Prettify<Omit<Base, OptionalKeys> & Partial<Pick<Base, OptionalKeys>>>;Defined in: support/common/lib/utils/types.ts:77
A version of Base with OptionalKeys made optional.
e.g. Optional<{ a: string, b: number }, "b"> evaluates to { a: string, b?: number }.
Type Parameters
Base
Base
OptionalKeys
OptionalKeys extends keyof Base