summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-01-23 14:24:03 +1100
committerGitHub <noreply@github.com>2024-01-23 03:24:03 +0000
commit7e4145df253e234c188be33ece2ae21753bc19af (patch)
tree3eaabe44b9748ac577399c3c95fc20154c287261 /cli/tsc/dts/lib.deno.ns.d.ts
parent706752753d8078288793254f3f2413b2103e6129 (diff)
refactor: set removal version for `Deno.RequestEvent`, `Deno.HttpConn` and `Deno.serveHttp()` (#22034)
This change: 1. Sets the removal version for `Deno.RequestEvent`, `Deno.HttpConn` and `Deno.serveHttp()` for Deno v2. I thought it might be worth calling `warnOnDeprecatedApi()` within `Deno.Request` and `Deno.HttpConn` methods, but I thought just having it called within `Deno.serveHttp()` might be sufficient. 2. Removes some possibly unneeded related benchmarks. Towards #22021
Diffstat (limited to 'cli/tsc/dts/lib.deno.ns.d.ts')
-rw-r--r--cli/tsc/dts/lib.deno.ns.d.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts
index b25ee4acd..f695a68c2 100644
--- a/cli/tsc/dts/lib.deno.ns.d.ts
+++ b/cli/tsc/dts/lib.deno.ns.d.ts
@@ -5297,7 +5297,8 @@ declare namespace Deno {
* request from a remote client.
*
* @category HTTP Server
- * @deprecated Use {@linkcode serve} instead.
+ * @deprecated Use {@linkcode Deno.serve} instead. This will be removed in
+ * Deno 2.0.
*/
export interface RequestEvent {
/** The request from the client in the form of the web platform
@@ -5318,7 +5319,8 @@ declare namespace Deno {
* requests on the HTTP server connection.
*
* @category HTTP Server
- * @deprecated Use {@linkcode serve} instead.
+ * @deprecated Use {@linkcode Deno.serve} instead. This will be removed in
+ * Deno 2.0.
*/
export interface HttpConn extends AsyncIterable<RequestEvent>, Disposable {
/** The resource ID associated with this connection. Generally users do not
@@ -5384,7 +5386,8 @@ declare namespace Deno {
* used elsewhere. In such a case, this function will fail.
*
* @category HTTP Server
- * @deprecated Use {@linkcode serve} instead.
+ * @deprecated Use {@linkcode Deno.serve} instead. This will be removed in
+ * Deno 2.0.
*/
export function serveHttp(conn: Conn): HttpConn;