Skip to content

Commit

Permalink
翻译: WriteFileOptions (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
dream2023 authored Apr 15, 2020
1 parent e327843 commit 8c58a22
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib.deno.ns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1544,15 +1544,15 @@ declare namespace Deno {
type?: string
): Promise<void>;

/** Options for writing to a file. */
/** `Deno.writeFileSync` 和 `Deno.writeFile` 的选项。*/
export interface WriteFileOptions {
/** Defaults to `false`. If set to `true`, will append to a file instead of
* overwriting previous contents. */
/** 默认为 `false`。如果设置为 `true`
* 则将追加到文件中,而不是覆盖之前的内容。 */
append?: boolean;
/** Sets the option to allow creating a new file, if one doesn't already
* exist at the specified path (defaults to `true`). */
/** 默认为 `true`。如果指定路径不存在
* 文件,是否允许创建新文件的选项。*/
create?: boolean;
/** Permissions always applied to file. */
/** 文件的权限。*/
mode?: number;
}

Expand Down

0 comments on commit 8c58a22

Please sign in to comment.