Skip to content

Commit 5064f00

Browse files
authored
Merge pull request #1495 from Komiriko/hotfix/1494
[#1494] : [Hook] onRequest server hook parameters are typed as `any` (Bun 1.3.0)
2 parents 272460a + 8944978 commit 5064f00

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

bun.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"devDependencies": {
1212
"@elysiajs/openapi": "^1.4.1",
13-
"@types/bun": "^1.2.12",
13+
"@types/bun": "^1.3.0",
1414
"@types/cookie": "^1.0.0",
1515
"@types/fast-decode-uri-component": "^1.0.0",
1616
"@typescript-eslint/eslint-plugin": "^8.30.1",
@@ -246,7 +246,7 @@
246246

247247
"@tybys/wasm-util": ["@tybys/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg=="],
248248

249-
"@types/bun": ["@types/bun@1.2.23", "", { "dependencies": { "bun-types": "1.2.23" } }, "sha512-le8ueOY5b6VKYf19xT3McVbXqLqmxzPXHsQT/q9JHgikJ2X22wyTW3g3ohz2ZMnp7dod6aduIiq8A14Xyimm0A=="],
249+
"@types/bun": ["@types/bun@1.3.0", "", { "dependencies": { "bun-types": "1.3.0" } }, "sha512-+lAGCYjXjip2qY375xX/scJeVRmZ5cY0wyHYyCYxNcdEXrQ4AOe3gACgd4iQ8ksOslJtW4VNxBJ8llUwc3a6AA=="],
250250

251251
"@types/cookie": ["@types/[email protected]", "", { "dependencies": { "cookie": "*" } }, "sha512-mGFXbkDQJ6kAXByHS7QAggRXgols0mAdP4MuXgloGY1tXokvzaFFM4SMqWvf7AH0oafI7zlFJwoGWzmhDqTZ9w=="],
252252

@@ -304,7 +304,7 @@
304304

305305
"builtin-modules": ["[email protected]", "", {}, "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw=="],
306306

307-
"bun-types": ["bun-types@1.2.23", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-R9f0hKAZXgFU3mlrA0YpE/fiDvwV0FT9rORApt2aQVWSuJDzZOyB5QLc0N/4HF57CS8IXJ6+L5E4W1bW6NS2Aw=="],
307+
"bun-types": ["bun-types@1.3.0", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-u8X0thhx+yJ0KmkxuEo9HAtdfgCBaM/aI9K90VQcQioAmkVp3SG3FkwWGibUFz3WdXAdcsqOcbU40lK7tbHdkQ=="],
308308

309309
"bundle-require": ["[email protected]", "", { "dependencies": { "load-tsconfig": "^0.2.3" }, "peerDependencies": { "esbuild": ">=0.18" } }, "sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA=="],
310310

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
},
197197
"devDependencies": {
198198
"@elysiajs/openapi": "^1.4.1",
199-
"@types/bun": "^1.2.12",
199+
"@types/bun": "^1.3.0",
200200
"@types/cookie": "^1.0.0",
201201
"@types/fast-decode-uri-component": "^1.0.0",
202202
"@typescript-eslint/eslint-plugin": "^8.30.1",

src/universal/server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Serve as BunServe, Server as BunServer } from 'bun'
1+
import { Serve as BunServe, type Server as BunServer } from 'bun'
22
import type { IsAny, MaybePromise } from '../types'
33

44
export interface ErrorLike extends Error {
@@ -122,8 +122,8 @@ export interface ServeOptions extends GenericServeOptions {
122122
>
123123
}
124124

125-
export type Serve = IsAny<BunServe> extends false ? BunServe : ServeOptions
126-
export type Server = IsAny<BunServer> extends false ? BunServer : ServerOptions
125+
export type Serve = IsAny<BunServe.Options<unknown>> extends false ? BunServe.Options<unknown> : ServeOptions
126+
export type Server = IsAny<BunServer<unknown>> extends false ? BunServer<unknown> : ServerOptions
127127

128128
export type ServerWebSocketSendStatus = number
129129

0 commit comments

Comments
 (0)