[]previous and next page

TemplateLiteralNode

A template literal such as a${b}c .

A template literal such as `a${b}c`.

Import#

ts
import type { TemplateLiteralNode } from "@shadow-js/compiler";

Signature#

ts
interface TemplateLiteralNode extends PluginNode {
  /** `"TemplateLiteral"`. */
  readonly type: "TemplateLiteral";
  /** The text chunks; there is one more than there are expressions. */
  readonly quasis: readonly TemplateElementNode[];
  /** The `${}` expressions. */
  readonly expressions: readonly PluginNode[];
}

Members#

Name Type Description
type readonly type: "TemplateLiteral" "TemplateLiteral".
quasis readonly quasis: readonly TemplateElementNode[] The text chunks; there is one more than there are expressions.
expressions readonly expressions: readonly PluginNode[] The ${} expressions.