Type Alias OutputTaggedUnion<K, M>

OutputTaggedUnion<K, M>: {
    [I in keyof M]: $.Expand<Record<K, Extract<M[I], $.AnyVariant>["tag"]> & $.Output<Extract<M[I], $.AnyVariant>["shape"]>>
}[keyof M & number]

Type Parameters

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