From 8e478a1a7db9a5c4e773e52f9c4a732793145ce7 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Sat, 31 Aug 2024 09:34:09 +1000 Subject: chore: remove `Deno.resources()` (#25251) --- cli/tsc/dts/lib.deno.ns.d.ts | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'cli/tsc') diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 31634811c..556799762 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -4060,36 +4060,6 @@ declare namespace Deno { bytesReceived: number; } - /** - * A map of open resources that Deno is tracking. The key is the resource ID - * (_rid_) and the value is its representation. - * - * @deprecated This will be removed in Deno 2.0. - * - * @category Runtime */ - export interface ResourceMap { - [rid: number]: unknown; - } - - /** Returns a map of open resource IDs (_rid_) along with their string - * representations. This is an internal API and as such resource - * representation has `unknown` type; that means it can change any time and - * should not be depended upon. - * - * ```ts - * console.log(Deno.resources()); - * // { 0: "stdin", 1: "stdout", 2: "stderr" } - * Deno.openSync('../test.file'); - * console.log(Deno.resources()); - * // { 0: "stdin", 1: "stdout", 2: "stderr", 3: "fsFile" } - * ``` - * - * @deprecated This will be removed in Deno 2.0. - * - * @category Runtime - */ - export function resources(): ResourceMap; - /** * Additional information for FsEvent objects with the "other" kind. * -- cgit v1.2.3