From 3ff9ca253310a05bc41742b6f01f7de83d4b73ee Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Wed, 12 Feb 2025 17:56:12 +0900 Subject: [PATCH] docs(cli): update description of readFile and readFileSync (#28079) --- cli/tsc/dts/lib.deno.ns.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 76ca48b1a7..a03b35a197 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -2905,7 +2905,7 @@ declare namespace Deno { /** Reads and resolves to the entire contents of a file as an array of bytes. * `TextDecoder` can be used to transform the bytes to string if required. - * Reading a directory returns an empty data array. + * Rejects with an error when reading a directory. * * ```ts * const decoder = new TextDecoder("utf-8"); @@ -2925,7 +2925,7 @@ declare namespace Deno { /** Synchronously reads and returns the entire contents of a file as an array * of bytes. `TextDecoder` can be used to transform the bytes to string if - * required. Reading a directory returns an empty data array. + * required. Throws an error when reading a directory. * * ```ts * const decoder = new TextDecoder("utf-8");