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.
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 ofswitch
statement for type narrowing.