mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00: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
|
/** 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
|
* ```ts
|
||||||
* for await (const dirEntry of Deno.readDir("/")) {
|
* for await (const dirEntry of Deno.readDir("/")) {
|
||||||
|
@ -3433,7 +3433,7 @@ declare namespace Deno {
|
||||||
export function readDir(path: string | URL): AsyncIterable<DirEntry>;
|
export function readDir(path: string | URL): AsyncIterable<DirEntry>;
|
||||||
|
|
||||||
/** Synchronously reads the directory given by `path` and returns an iterable
|
/** 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
|
* ```ts
|
||||||
* for (const dirEntry of Deno.readDirSync("/")) {
|
* for (const dirEntry of Deno.readDirSync("/")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue