UnionBranchMeta
Experimental
Union branch definition for code generation.
Since
2.0.0
Properties
typeName: string
Experimental
Human-readable type name for error messages
generateCode(): (varName, ctx) => object
Experimental
Code generator for this branch
varName:
string
ctx:GeneratorContext
Returns:object
code: string[]
ctx: GeneratorContext
typeofCheck?: string
Experimental
Optional quick typeof check for optimization