KC's Workspace
    Preparing search index...
    interface TemplateElement {
        leadingComments?: Comment[];
        loc?: SourceLocation | null;
        range?: [number, number];
        tail: boolean;
        trailingComments?: Comment[];
        type: "TemplateElement";
        value: { cooked?: string | null; raw: string };
    }

    Hierarchy (View Summary)

    Index

    Properties

    leadingComments?: Comment[]
    loc?: SourceLocation | null
    range?: [number, number]
    tail: boolean
    trailingComments?: Comment[]
    type: "TemplateElement"
    value: { cooked?: string | null; raw: string }

    Type Declaration

    • Optionalcooked?: string | null

      It is null when the template literal is tagged and the text has an invalid escape (e.g. - tag\unicode and \u{55})

    • raw: string