import { type Deno } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.deno.ns.d.ts";
const { WriteFileOptions } = Deno;
Options for writing to a file.
Properties
Defaults to false
. If set to true
, will append to a file instead of
overwriting previous contents.
Sets the option to allow creating a new file, if one doesn't already
exist at the specified path (defaults to true
).
optional
signal: AbortSignalAn abort signal to allow cancellation of the file write operation.
If the signal becomes aborted the write file operation will be stopped
and the promise returned will be rejected with an AbortError
.