From a4a628dc6f9b8410957126db01a138aa36827be5 Mon Sep 17 00:00:00 2001 From: Hirotaka Tagawa / wafuwafu13 Date: Tue, 4 Oct 2022 00:22:40 +0900 Subject: docs(fs): add default info of `OpenOptions` (#16104) --- cli/dts/lib.deno.ns.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cli/dts/lib.deno.ns.d.ts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index ca5e2b6d4..9c645882d 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -1975,27 +1975,27 @@ declare namespace Deno { * * @category File System */ export interface OpenOptions { - /** Sets the option for read access. This option, when `true`, means that + /** Defaults to `true`. Sets the option for read access. This option, when `true`, means that * the file should be read-able if opened. */ read?: boolean; - /** Sets the option for write access. This option, when `true`, means that + /** Defaults to `false`. Sets the option for write access. This option, when `true`, means that * the file should be write-able if opened. If the file already exists, * any write calls on it will overwrite its contents, by default without * truncating it. */ write?: boolean; - /** Sets the option for the append mode. This option, when `true`, means + /** Defaults to `false`. Sets the option for the append mode. This option, when `true`, means * that writes will append to a file instead of overwriting previous * contents. * * Note that setting `{ write: true, append: true }` has the same effect as * setting only `{ append: true }`. */ append?: boolean; - /** Sets the option for truncating a previous file. If a file is + /** Defaults to `false`. 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` * 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 + /** Defaults to `false`. Sets the option to allow creating a new file, if one doesn't already * exist at the specified path. Requires write or append access to be * used. */ create?: boolean; -- cgit v1.2.3