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

Generated using TypeDoc