Type alias ParseMatchNodeVars<Q>
Parse
Match
Node
Vars
<Q>: Q extends `${infer _
}(${infer V
})${infer Tail
}` ? V extends `${infer Var
}:${infer Labels
}` ? { [ X in Trim<Var>]: Node } & ParseMatchNodeVars<Tail> : V extends `${infer Var
}{${infer Props
}}` ? { [ X in Trim<Var>]: Node } & ParseMatchNodeVars<Tail> : { [ X in Trim<V>]: Node } & ParseMatchNodeVars<Tail> : {}