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 |
Defined in
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 |
Defined in
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 |