summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2022-12-13 05:12:49 +0100
committerGitHub <noreply@github.com>2022-12-13 05:12:49 +0100
commit5d9bb8b4b042f4d4fbbe61b31a50a26db7f1ae63 (patch)
tree84f1e25983b3fbbb1a8f991b8db1c948aa371b9a /cli/tsc/dts/lib.deno.ns.d.ts
parenta2ba573e77b63d2bcb5cba19fae09cebda2fc685 (diff)
feat: support `createNew` in `Deno.writeFile` (#17023)
Diffstat (limited to 'cli/tsc/dts/lib.deno.ns.d.ts')
-rw-r--r--cli/tsc/dts/lib.deno.ns.d.ts4
1 files changed, 4 insertions, 0 deletions
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.