generateMinCheck()
generateMinCheck(
varName,min,ctx,customMessage?):CodeGenResult
Experimental
Generates inline code for the min constraint (inclusive).
Parametersβ
varName: stringβ
The variable name to check
min: numberβ
Minimum value (inclusive)
ctx: GeneratorContextβ
The generator context
customMessage?: stringβ
Optional custom error message
Returns: CodeGenResultβ
Generated code and updated context
Sinceβ
2.0.0