0
0
Fork 0
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:
ricfrst 2024-11-01 18:52:54 -04:00 committed by GitHub
parent eaa10c7a30
commit 82cad0bb7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}.
* *