Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
v1rtl committed Aug 3, 2023
1 parent 1af6288 commit 26a342c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions types.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
/** Information about the connection a request arrived on. */
export interface ConnInfo {
/** The local address of the connection. */
readonly localAddr: Deno.Addr
/** The remote address of the connection. */
readonly remoteAddr: Deno.Addr
}

export type Handler = (
request: Request,
connInfo: ConnInfo,
connInfo: Deno.Conn
) => Response | Promise<Response>

export type HandlerOrListener = Handler | Deno.Listener

0 comments on commit 26a342c

Please sign in to comment.