Since 11.1
The @taggedTemplate decorator is used to bind to JavaScript tag functions.
@taggedTemplate
// 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}`
Tagged template functions