Skip to main content

$

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

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

Arguments

1. content

content: string
  | TemplateStringsArray
  | SourceMappedStringI[]

2. args

args:
  | string
  | number
  | Site
  | SourceMappedStringI
  | SourceMappedStringI[][]

Returns

SourceMappedStringI