summaryrefslogtreecommitdiff
path: root/ext/net/lib.deno_net.d.ts
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-01-24 13:47:48 +1100
committerGitHub <noreply@github.com>2024-01-24 03:47:48 +0100
commit5a4d69354c3c240a0ea42804b712942f1c30e744 (patch)
tree1b0e49ca7877887c68892f0061f0245a71323f05 /ext/net/lib.deno_net.d.ts
parent4c0b66baab854617993cb242e3be8fe91fb9b0fc (diff)
feat: deprecate `Deno.shutdown()` (#22067)
For removal in Deno v2. --------- Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Diffstat (limited to 'ext/net/lib.deno_net.d.ts')
-rw-r--r--ext/net/lib.deno_net.d.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts
index e3051d6ad..2392c1ff4 100644
--- a/ext/net/lib.deno_net.d.ts
+++ b/ext/net/lib.deno_net.d.ts
@@ -397,6 +397,9 @@ declare namespace Deno {
* Deno.shutdown(conn.rid);
* ```
*
+ * @deprecated Use {@linkcode Deno.Conn.closeWrite} instead.
+ * {@linkcode Deno.shutdown} will be removed in Deno 2.0.
+ *
* @category Network
*/
export function shutdown(rid: number): Promise<void>;