generateLtCheck()
generateLtCheck(
varName,lessThan,ctx,customMessage?):CodeGenResult
Experimental
Generates inline code for the lt constraint (exclusive less than).
Parametersβ
varName: stringβ
The variable name to check
lessThan: numberβ
Upper bound (exclusive)
ctx: GeneratorContextβ
The generator context
customMessage?: stringβ
Optional custom error message
Returns: CodeGenResultβ
Generated code and updated context
Sinceβ
2.0.0