InferVariantMatch<Choices>: {
    [Branch in keyof Choices]: Choices[Branch] extends Schema.Reader<infer Value>
        ? [Branch, Value]
        : never
}[keyof Choices]

Utility type for inferring the result of calling match on the VariantSchema. It derives a tuple of the branch name and the value of the branch allowing use of switch statement for type narrowing.

Type Parameters

Generated using TypeDoc