Module: utils/types
Type Aliases
OmitTyped
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
Name | Type |
---|---|
T | T |
K | extends keyof T |
Defined in
PartialPick
PartialPick<T
, K
>: OmitTyped
<T
, K
> & Partial
<T
>
Make the specified properties optional
Type parameters
Name | Type |
---|---|
T | T |
K | extends keyof T |
Defined in
RequiredPick
RequiredPick<T
, K
>: Required
<Pick
<T
, K
>> & T
Make the specified properties required
Type parameters
Name | Type |
---|---|
T | T |
K | extends keyof T |