From a69b1e699ef76568a4a3da47939134abda545ec7 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Wed, 11 Sep 2024 07:19:34 +1000 Subject: BREAKING(fs): remove `Deno.FsFile.prototype.rid` (#25499) Towards #22079 --------- Signed-off-by: Asher Gomez --- cli/tsc/dts/lib.deno.ns.d.ts | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'cli/tsc/dts/lib.deno.ns.d.ts') diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 9a77bd188..cd21b9276 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -1815,15 +1815,6 @@ declare namespace Deno { * @category File System */ export class FsFile implements Seeker, SeekerSync, Disposable { - /** - * The resource ID associated with the file instance. The resource ID - * should be considered an opaque reference to resource. - * - * @deprecated This will be removed in Deno 2.0. See the - * {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide} - * for migration instructions. - */ - readonly rid: number; /** A {@linkcode ReadableStream} instance representing to the byte contents * of the file. This makes it easy to interoperate with other web streams * based APIs. @@ -1973,7 +1964,7 @@ declare namespace Deno { * resolves to the new position within the resource (bytes from the start). * * ```ts - * // Given file pointing to file with "Hello world", which is 11 bytes long: + * // Given the file contains "Hello world" text, which is 11 bytes long: * using file = await Deno.open( * "hello.txt", * { read: true, write: true, truncate: true, create: true }, @@ -1991,7 +1982,7 @@ declare namespace Deno { * The seek modes work as follows: * * ```ts - * // Given file.rid pointing to file with "Hello world", which is 11 bytes long: + * // Given the file contains "Hello world" text, which is 11 bytes long: * const file = await Deno.open( * "hello.txt", * { read: true, write: true, truncate: true, create: true }, @@ -2028,7 +2019,7 @@ declare namespace Deno { * The seek modes work as follows: * * ```ts - * // Given file.rid pointing to file with "Hello world", which is 11 bytes long: + * // Given the file contains "Hello world" text, which is 11 bytes long: * using file = Deno.openSync( * "hello.txt", * { read: true, write: true, truncate: true, create: true }, -- cgit v1.2.3