Syntax Lookup

Enter some language construct you want to know more about.
This is the @taggedTemplate decorator.

Since 11.1

The @taggedTemplate decorator is used to bind to JavaScript tag functions.

Example

ReScriptJS Output
// see https://bun.sh/docs/runtime/shell
type result = {exitCode: int}
@module("bun") @taggedTemplate
external sh: (array<string>, array<string>) => promise<result> = "$"

let filename = "index.res"
let result = await sh`ls ${filename}`

References