import { BunFile, BunPlugin, FileBlob } from "bun"; import * as tsd from "tsd"; { const _plugin: BunPlugin = { name: "asdf", setup() {}, }; _plugin; } { const arg = Bun.plugin({ name: "arg", setup() {}, }); tsd.expectType(arg); } { const arg = Bun.plugin({ name: "arg", async setup() {}, }); tsd.expectType>(arg); } { const f = Bun.file("asdf"); tsd.expectType(f); tsd.expectType(f); } { Bun.spawn(["anything"], { env: process.env, }); Bun.spawn(["anything"], { env: { ...process.env }, }); Bun.spawn(["anything"], { env: { ...process.env, dummy: "" }, }); } { Bun.TOML.parse("asdf = asdf"); }