From 5d9bb8b4b042f4d4fbbe61b31a50a26db7f1ae63 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Tue, 13 Dec 2022 05:12:49 +0100 Subject: feat: support `createNew` in `Deno.writeFile` (#17023) --- cli/tsc/dts/lib.deno.ns.d.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/tsc/dts') diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 1049bf643..da4ec24ab 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -3296,6 +3296,10 @@ declare namespace Deno { /** Sets the option to allow creating a new file, if one doesn't already * exist at the specified path (defaults to `true`). */ create?: boolean; + /** Defaults to `false`. If set to `true`, no file, directory, or symlink is + * allowed to exist at the target location. When createNew is set to `true`, + * `create` is ignored. */ + createNew?: boolean; /** Permissions always applied to file. */ mode?: number; /** An abort signal to allow cancellation of the file write operation. -- cgit v1.2.3