From 547468e625a7b040690a6f26901597b5672ac413 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 25 Jan 2024 04:57:28 +1100 Subject: feat: deprecate `Deno.FsWatcher.rid` (#22074) For removal in Deno v2. I've also updated the deprecation of `Deno.FsWatcher.return()`, which, to be clear, I'm not in favour of deprecating. I mention this in #15499. Either way, it's safe to merge this PR, then decide against the deprecation. --- cli/tsc/dts/lib.deno.ns.d.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 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 9ec90a2d6..743152442 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -4084,14 +4084,19 @@ declare namespace Deno { * @category File System */ export interface FsWatcher extends AsyncIterable, Disposable { - /** The resource id. */ + /** + * The resource id. + * + * @deprecated Use {@linkcode Deno.FsWatcher} instance methods instead. + * {@linkcode Deno.FsWatcher.rid} will be removed in Deno 2.0. + */ readonly rid: number; /** Stops watching the file system and closes the watcher resource. */ close(): void; /** * Stops watching the file system and closes the watcher resource. * - * @deprecated {@linkcode Deno.FsWatcher.return} will be removed in v2.0.0. + * @deprecated {@linkcode Deno.FsWatcher.return} will be removed in Deno 2.0. */ return?(value?: any): Promise>; [Symbol.asyncIterator](): AsyncIterableIterator; -- cgit v1.2.3