Skip to content

Commit 8944978

Browse files
committed
fix(🔧): [Little fix for bun 1.3.0]
1 parent 2402d0c commit 8944978

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎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)