Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

翻译: WriteFileOptions #38

Merged
merged 1 commit into from
Apr 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib.deno.ns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1562,15 +1562,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