Skip to main content

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