Skip to content

Commit 26a342c

Browse files
author
v1rtl
committed
fix: types
1 parent 1af6288 commit 26a342c

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

types.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
/** Information about the connection a request arrived on. */
2-
export interface ConnInfo {
3-
/** The local address of the connection. */
4-
readonly localAddr: Deno.Addr
5-
/** The remote address of the connection. */
6-
readonly remoteAddr: Deno.Addr
7-
}
8-
91
export type Handler = (
102
request: Request,
11-
connInfo: ConnInfo,
3+
connInfo: Deno.Conn
124
) => Response | Promise<Response>
135

146
export type HandlerOrListener = Handler | Deno.Listener

0 commit comments

Comments
 (0)