InferVariant<Choices>: {
    [Case in keyof Choices]: {
        [Key in Exclude<keyof Choices, Case>]?: never
    } & {
        [Key in Case]: Choices[Case] extends Schema.Reader<infer T>
            ? T
            : never
    }
}[keyof Choices]

Utility type for inferring the Variant from VariantChoices.

Type Parameters

Generated using TypeDoc