mirror of
https://github.com/denoland/deno.git
synced 2025-03-04 09:57:11 -05:00
docs(cli): update description of readFile and readFileSync (#28079)
This commit is contained in:
parent
795ecfdca6
commit
3ff9ca2533
1 changed files with 2 additions and 2 deletions
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue