mirror of
https://github.com/denoland/deno.git
synced 2024-12-26 00:59:24 -05:00
docs(ns): add a notice on file order returned by readDir (#21953)
This commit is contained in:
parent
4e72ca313a
commit
7d29eb0f63
1 changed files with 2 additions and 2 deletions
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -3415,7 +3415,7 @@ declare namespace Deno {
|
|||
}
|
||||
|
||||
/** Reads the directory given by `path` and returns an async iterable of
|
||||
* {@linkcode Deno.DirEntry}.
|
||||
* {@linkcode Deno.DirEntry}. The order of entries is not guaranteed.
|
||||
*
|
||||
* ```ts
|
||||
* for await (const dirEntry of Deno.readDir("/")) {
|
||||
|
@ -3433,7 +3433,7 @@ declare namespace Deno {
|
|||
export function readDir(path: string | URL): AsyncIterable<DirEntry>;
|
||||
|
||||
/** Synchronously reads the directory given by `path` and returns an iterable
|
||||
* of `Deno.DirEntry`.
|
||||
* of {@linkcode Deno.DirEntry}. The order of entries is not guaranteed.
|
||||
*
|
||||
* ```ts
|
||||
* for (const dirEntry of Deno.readDirSync("/")) {
|
||||
|
|
Loading…
Reference in a new issue