ParsedTemplateNode: {
    text: string;
    type: "literal";
} | {
    name: string;
    type: "variable";
}

Type that represents a node in a parsed format string. It can be either a literal text or a variable name.

Type declaration

  • text: string
  • type: "literal"

Type declaration

  • name: string
  • type: "variable"

Generated using TypeDoc