raw

Bun

Symbol

CString.raw

static raw(template: { raw: readonly string[] | ArrayLike<string> }, ...substitutions: any[]): string

String.raw is usually used as a tag function of a Tagged Template String. When called as such, the first argument will be a well formed template call site object and the rest parameter will contain the substitution values. It can also be called directly, for example, to interleave strings and values from your own tag function, and in this case the only thing it needs from the first argument is the raw property.

@param template

A well-formed template string call site representation.

@param substitutions

A set of substitution values.