diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-01-25 04:57:28 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 18:57:28 +0100 |
commit | 547468e625a7b040690a6f26901597b5672ac413 (patch) | |
tree | 4c6fbfe7f2897130a65b93c9c9ae350d8cd3c951 /cli/tsc | |
parent | 48c19d0bab5c1977e0d61a83d8e13c2bc26ef398 (diff) |
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.
Diffstat (limited to 'cli/tsc')
-rw-r--r-- | cli/tsc/dts/lib.deno.ns.d.ts | 9 |
1 files changed, 7 insertions, 2 deletions
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<FsEvent>, 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<IteratorResult<FsEvent>>; [Symbol.asyncIterator](): AsyncIterableIterator<FsEvent>; |