Since 11.1
The @taggedTemplate decorator was removed in v13. Bind JavaScript tag functions with the built-in taggedTemplate<'param, 'output> type instead.
@taggedTemplate
taggedTemplate<'param, 'output>
// see https://bun.sh/docs/runtime/shell type result = {exitCode: int} @module("bun") external sh: taggedTemplate<string, promise<result>> = "$" let filename = "index.res" let result = await sh`ls ${filename}`
Bind to JS Function