diff options
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 2137ce336..4a3417b5d 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -1524,7 +1524,11 @@ declare namespace Deno { * * Requires `allow-write` permission, and `allow-read` if `options.create` is `false`. */ - export function writeTextFileSync(path: string | URL, data: string): void; + export function writeTextFileSync( + path: string | URL, + data: string, + options?: WriteFileOptions + ): void; /** Asynchronously write string `data` to the given `path`, by default creating a new file if needed, * else overwriting. @@ -1537,7 +1541,8 @@ declare namespace Deno { */ export function writeTextFile( path: string | URL, - data: string + data: string, + options?: WriteFileOptions ): Promise<void>; /** Synchronously truncates or extends the specified file, to reach the |