mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
16 lines
321 B
TypeScript
16 lines
321 B
TypeScript
import { fn, t } from "bindgen";
|
|
|
|
const implNamespace = "js_bindings";
|
|
|
|
export const Formatter = t.stringEnum("highlight-javascript", "escape-powershell");
|
|
|
|
export const fmtString = fn({
|
|
implNamespace,
|
|
args: {
|
|
global: t.globalObject,
|
|
code: t.UTF8String,
|
|
formatter: Formatter,
|
|
},
|
|
ret: t.DOMString,
|
|
});
|