Skip to main content

types

Type Aliases

OmitTyped<T, K>

type OmitTyped<T, K>: Omit<T, K>;

Omit doesnt enforce that the seconds generic is a keyof the first OmitTyped guards against the underlying type prop names being refactored, and not being updated in the usage of OmitTyped

Type parameters

Type parameter
T
K extends keyof T

Source

utils/types.ts:6


PartialPick<T, K>

type PartialPick<T, K>: OmitTyped<T, K> & Partial<T>;

Make the specified properties optional

Type parameters

Type parameter
T
K extends keyof T

Source

utils/types.ts:11


RequiredPick<T, K>

type RequiredPick<T, K>: Required<Pick<T, K>> & T;

Make the specified properties required

Type parameters

Type parameter
T
K extends keyof T

Source

utils/types.ts:16