diff options
author | dubiousjim <dubiousjim@gmail.com> | 2020-03-06 08:34:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-06 08:34:02 -0500 |
commit | 9a63902db5bc33f3130c7227299cfb3b5be400ae (patch) | |
tree | 2d8215f1e153d5ca20ff608973a1988c589eaa58 /cli/js/lib.deno.ns.d.ts | |
parent | afea9b2edd4becf66bdc6d40a0cb0dbe29267524 (diff) |
Rename readDir -> readdir (#4225)
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 555a2ebf7..c6318b8ab 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -992,8 +992,8 @@ declare namespace Deno { /** UNSTABLE: 'len' maybe should be 'length' or 'size'. * * A FileInfo describes a file and is returned by `stat`, `lstat`, - * `statSync`, `lstatSync`. A list of FileInfo is returned by `readDir`, - * `readDirSync`. */ + * `statSync`, `lstatSync`. A list of FileInfo is returned by `readdir`, + * `readdirSync`. */ export interface FileInfo { /** **UNSTABLE**: `.len` maybe should be `.length` or `.size`. * @@ -1079,25 +1079,24 @@ declare namespace Deno { // @url js/read_dir.d.ts - /** UNSTABLE: Unstable rename to readdirSync. + /** UNSTABLE: need to consider streaming case * - /* Synchronously reads the directory given by `path` and returns an array of + * Synchronously reads the directory given by `path` and returns an array of * `Deno.FileInfo`. * - * const files = Deno.readDirSync("/"); + * const files = Deno.readdirSync("/"); * * Requires `allow-read` permission. */ - export function readDirSync(path: string): FileInfo[]; + export function readdirSync(path: string): FileInfo[]; - /** UNSTABLE: Possibly rename to `.readdir()`. Maybe need to return an - * `AsyncIterable`. + /** UNSTABLE: Maybe need to return an `AsyncIterable`. * * Reads the directory given by `path` and resolves to an array of `Deno.FileInfo`. * - * const files = await Deno.readDir("/"); + * const files = await Deno.readdir("/"); * * Requires `allow-read` permission. */ - export function readDir(path: string): Promise<FileInfo[]>; + export function readdir(path: string): Promise<FileInfo[]>; // @url js/copy_file.d.ts |