Type Alias InputTaggedUnion<K, M>

InputTaggedUnion<K, M>: {
    [I in keyof M]: Expand<Readonly<Record<K, Extract<M[I], AnyVariant>["tag"]>> & Input<Extract<M[I], AnyVariant>["shape"]>>
}[keyof M & number]

Type Parameters

  • K extends keyof any
  • M extends Record<number, AnyVariant>