From 231899695d410d8d8c14c0936682a90e98bc6fd3 Mon Sep 17 00:00:00 2001 From: Marcos Casagrande Date: Wed, 8 Jul 2020 15:38:22 +0200 Subject: feat(cli): Add WriteFileOptions to writeTextFile & writeTextFileSync (#6280) --- cli/js/lib.deno.ns.d.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cli/js/lib.deno.ns.d.ts') 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; /** Synchronously truncates or extends the specified file, to reach the -- cgit v1.2.3