generateGteCheck()
generateGteCheck(
varName,greaterThanOrEqual,ctx,customMessage?):CodeGenResult
Experimental
Generates inline code for the gte constraint (inclusive greater than or equal).
Parametersβ
varName: stringβ
The variable name to check
greaterThanOrEqual: numberβ
Lower bound (inclusive)
ctx: GeneratorContextβ
The generator context
customMessage?: stringβ
Optional custom error message
Returns: CodeGenResultβ
Generated code and updated context
Sinceβ
2.0.0