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