generateIncludesCheck()
generateIncludesCheck(
varName,substring,ctx,customMessage?):CodeGenResult
Experimental
Generates inline code for the includes constraint.
Parametersβ
varName: stringβ
The variable name to check.
substring: stringβ
The substring to search for.
ctx: GeneratorContextβ
The generator context.
customMessage?: stringβ
Optional custom error message.
Returns: CodeGenResultβ
Generated code and updated context.
Sinceβ
2.0.0