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