InferVariantMatch<Choices>:{ [Branch in keyof Choices]: Choices[Branch] extends Space.Store.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
matchon the VariantSchema. It derives a tuple of the branch name and the value of the branch allowing use ofswitchstatement for type narrowing.