summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2024-09-03 11:09:40 +0200
committerGitHub <noreply@github.com>2024-09-03 11:09:40 +0200
commit90338eff8d38f6ff56becc4653c98861e6fabd6b (patch)
treeb258f3c9c87da12673b9db5111bb2b68110ddd0a /cli/tsc/dts/lib.deno.unstable.d.ts
parent1a82b0f8086133053c558084c567a0403c2708e9 (diff)
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
Diffstat (limited to 'cli/tsc/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/tsc/dts/lib.deno.unstable.d.ts12
1 files changed, 0 insertions, 12 deletions
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<void>;
- }
-
/** **UNSTABLE**: New API, yet to be vetted.
*
* Retrieve the process umask. If `mask` is provided, sets the process umask.