xdash / OneOf
Type alias: OneOf<T, K>
OneOf<
T
,K
>:{ [Property in K]: Pick<T, Property> & Partial<Record<Exclude<K, Property>, never>> }
[K
]
Type parameters
• T
• K extends keyof T
xdash / OneOf
OneOf<
T
,K
>:{ [Property in K]: Pick<T, Property> & Partial<Record<Exclude<K, Property>, never>> }
[K
]
• T
• K extends keyof T