8000 fix: Fix bun type resolution · aklinker1/zeta@3e80808 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3e80808

Browse files
committed
fix: Fix bun type resolution
1 parent cb12378 commit 3e80808

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎package.json‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,13 @@
6565
"vitepress": "^2.0.0-alpha.12",
6666
"vitepress-plugin-mermaid": "^2.0.17",
6767
"zod": "^4.1.11"
68+
},
69+
"peerDependencies": {
70+
"@types/bun": "*"
71+
},
72+
"peerDependenciesMeta": {
73+
"@types/bun": {
74+
"optional": true
75+
}
6876
}
6977
}

‎src/transports/bun-transport.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Transport } from "../types";
22
// @ts-ignore: Bun types may not be available
3-
import type { ServeFunctionOptions } from "bun";
3+
import type { ServeFunctionOptions } from "@types/bun";
44

55
export function createBunTransport(
66
options: Omit<ServeFunctionOptions<any, any>, "fetch" | "port">,

0 commit comments

Comments
 (0)
0