mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00:00
Update lib.deno.ns.d.ts
Signed-off-by: ricfrst <ricardofurst06@gmail.com>
This commit is contained in:
parent
9e04c793cd
commit
a65b9ba5c7
8
cli/tsc/dts/lib.deno.ns.d.ts
vendored
8
cli/tsc/dts/lib.deno.ns.d.ts
vendored
@ -1209,12 +1209,6 @@ declare namespace Deno {
|
||||
}
|
||||
|
||||
/** Interface for serving HTTP requests. */
|
||||
interface ServeDefaultExport {
|
||||
/** The handler function to invoke when a new request is received. */
|
||||
fetch: ServeHandler;
|
||||
/** An optional function that is called when the server starts listening on the port. */
|
||||
onListen?: (params: { hostname: string; port: number; serverType: "HTTP" | "HTTPS" }) => void;
|
||||
}
|
||||
|
||||
/**
|
||||
* The interface for defining a benchmark test using {@linkcode Deno.bench}.
|
||||
@ -5083,6 +5077,8 @@ interface ServeDefaultExport {
|
||||
* @category HTTP Server
|
||||
*/
|
||||
fetch: ServeHandler;
|
||||
/** An optional function that is called when the server starts listening on the port. */
|
||||
onListen?: (params: { hostname: string; port: number; serverType: "HTTP" | "HTTPS" }) => void;
|
||||
}
|
||||
|
||||
/** Options which can be set when calling {@linkcode Deno.serve}.
|
||||
|
Loading…
Reference in New Issue
Block a user