Files
bun.sh/src/fmt.bind.ts
2024-12-10 12:43:17 -08:00

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,
});