Skip to main content

$

Shorthand for new SourceMappedString(), which can also be used with template string literals This is used very frequently by the code generation of the higher-level language

export function $(
  content: string
    | TemplateStringsArray
    | SourceMappedStringI[],
  args:
    | string
    | number
    | Site
    | SourceMappedStringI
    | SourceMappedStringI[][]
): SourceMappedStringI

Arguments

NameTypeDescription
contentstring   | TemplateStringsArray   | SourceMappedStringI[]
args   | string   | number   | Site   | SourceMappedStringI   | SourceMappedStringI[][]

Return value

SourceMappedStringI