Skip to main content
Module

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

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method RegularExpressionLiteral.prototype.setLiteralValue
import { RegularExpressionLiteral } from "https://deno.land/x/ts_morph@15.1.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.