From 82cad0bb7de84290e985815190f025726c7a9caa Mon Sep 17 00:00:00 2001 From: ricfrst Date: Fri, 1 Nov 2024 18:52:54 -0400 Subject: [PATCH] Update lib.deno.ns.d.ts Signed-off-by: ricfrst --- cli/tsc/dts/lib.deno.ns.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 36592e10dc..7b951ff460 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -1208,6 +1208,14 @@ declare namespace Deno { 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}. *