diff options
author | Benjamin Gruenbaum <benjamingr@gmail.com> | 2021-08-06 20:21:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-06 10:21:29 -0700 |
commit | 2b53602d3c798b68db4ce986546d3434b986096a (patch) | |
tree | 8b8a1bf86d3f890302b50f21ce0632df1e2d9728 /cli/dts/lib.deno.ns.d.ts | |
parent | 466d3df9d1ff43e16e1a2c20b7792de664547b48 (diff) |
feat: support AbortSignal in writeFile (#11568)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index b0c56591b..8aa478f12 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -1714,6 +1714,12 @@ declare namespace Deno { create?: boolean; /** Permissions always applied to file. */ mode?: number; + /** + * An abort signal to allow cancellation of the file write operation. + * If the signal becomes aborted the writeFile operation will be stopped + * and the promise returned will be rejected with an AbortError. + */ + signal?: AbortSignal; } /** Synchronously write `data` to the given `path`, by default creating a new |