mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 20:25:12 -05:00
Update lib.deno.ns.d.ts
Signed-off-by: ricfrst <ricardofurst06@gmail.com>
This commit is contained in:
parent
eaa10c7a30
commit
82cad0bb7d
1 changed files with 8 additions and 0 deletions
8
cli/tsc/dts/lib.deno.ns.d.ts
vendored
8
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -1208,6 +1208,14 @@ declare namespace Deno {
|
||||||
end(): void;
|
end(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 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}.
|
* The interface for defining a benchmark test using {@linkcode Deno.bench}.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue