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