diff options
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 751e4452b..daae8b09d 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -661,7 +661,7 @@ declare namespace Deno { append?: boolean; /** Sets the option for truncating a previous file. If a file is * successfully opened with this option set it will truncate the file to `0` - * length if it already exists. The file must be opened with write access + * size if it already exists. The file must be opened with write access * for truncate to work. */ truncate?: boolean; /** Sets the option to allow creating a new file, if one doesn't already @@ -1058,16 +1058,12 @@ declare namespace Deno { // @url js/file_info.d.ts - /** UNSTABLE: 'len' maybe should be 'length' or 'size'. - * - * A FileInfo describes a file and is returned by `stat`, `lstat`, + /** A FileInfo describes a file and is returned by `stat`, `lstat`, * `statSync`, `lstatSync`. A list of FileInfo is returned by `readdir`, * `readdirSync`. */ export interface FileInfo { - /** **UNSTABLE**: `.len` maybe should be `.length` or `.size`. - * - * The size of the file, in bytes. */ - len: number; + /** The size of the file, in bytes. */ + size: number; /** The last modification time of the file. This corresponds to the `mtime` * field from `stat` on Linux/Mac OS and `ftLastWriteTime` on Windows. This * may not be available on all platforms. */ |