From 90338eff8d38f6ff56becc4653c98861e6fabd6b Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 3 Sep 2024 11:09:40 +0200 Subject: BREAKING(dts): improve types for `Deno.serve` (#25369) This significantly simplifies the types for `Deno.serve`. The following types become generic over the address type: - ServeHandlerInfo - ServeHandler - ServeOptions - ServeInit The following types are removed entirely: - ServeTlsOptions - ServeUnixOptions - ServeUnixHandlerInfo - ServeUnixHandler --- cli/tsc/dts/lib.deno.unstable.d.ts | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'cli/tsc/dts/lib.deno.unstable.d.ts') diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index 0ac2c08ee..413abe42d 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -10,18 +10,6 @@ declare namespace Deno { export {}; // stop default export type behavior - /** Information for a HTTP request. - * - * @category HTTP Server - * @experimental - */ - export interface ServeHandlerInfo { - /** The remote address of the connection. */ - remoteAddr: Deno.NetAddr; - /** The completion promise */ - completed: Promise; - } - /** **UNSTABLE**: New API, yet to be vetted. * * Retrieve the process umask. If `mask` is provided, sets the process umask. -- cgit v1.2.3