Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: lookup type
  • Loading branch information
aadi-paypay committed Aug 4, 2023
commit db16bdcb564006cd47a1333807769b2fee414ee0
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import * as events from "events";
import * as url from "url";
import * as stream from "stream";
import * as dns from "dns";
import { LookupFunction } from 'node:net';

interface ProxyTargetDetailed {
host: string;
Expand Down Expand Up @@ -191,7 +192,7 @@ declare namespace Server {
/** Buffer */
buffer?: stream.Stream | undefined;
/** Custom lookup to pass to http(s).request */
lookup?: typeof dns.lookup | undefined;
lookup?: LookupFunction | undefined;
}

type StartCallback<TIncomingMessage = http.IncomingMessage, TServerResponse = http.ServerResponse> = (
Expand Down