WithRequiredProps
WithRequiredProps<
T
,K
>:Partial
<T
> &Pick
<T
,K
>
Type definition for an object with required properties.
Type parameters
• T
The type of the object.
• K extends keyof T
The keys of the required properties.
WithRequiredProps<
T
,K
>:Partial
<T
> &Pick
<T
,K
>
Type definition for an object with required properties.
• T
The type of the object.
• K extends keyof T
The keys of the required properties.