Type Alias: ExclusiveRecord<K, V>
ts
type ExclusiveRecord<K, V> = { [P in K]: (Record<P, V> & Partial<Record<Exclude<K, P>, never>>) extends infer O ? { [Q in keyof O]: O[Q] } : never }[K];Defined in: ExclusiveRecord.ts:6
A record that is exclusive to a given key.
Type Parameters
K
K extends PropertyKey
V
V