Module

x/ts_morph/ts_morph.d.ts>RegularExpressionLiteral#setLiteralValue

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method RegularExpressionLiteral.prototype.setLiteralValue
import { RegularExpressionLiteral } from "https://dotland.deno.dev/x/ts_morph@22.0.0/ts_morph.d.ts";

Sets the literal value according to a pattern and some flags.

Parameters

pattern: string
  • Pattern.
optional
flags: string
  • Flags.

Sets the literal value according to a regular expression object.

Parameters

regExp: RegExp
  • Regular expression.