1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 09:39:08 -05:00
This commit is contained in:
vwkd 2020-10-14 16:28:21 +02:00 committed by GitHub
parent 12e700bddf
commit f9489e9acb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1225,7 +1225,7 @@ declare namespace Deno {
* Requires `allow-read` and `allow-write` permission. */
export function rename(oldpath: string, newpath: string): Promise<void>;
/** Synchronously reads and returns the entire contents of a file as utf8 encoded string
/** Synchronously reads and returns the entire contents of a file as utf8
* encoded string. Reading a directory returns an empty string.
*
* ```ts
@ -1236,8 +1236,8 @@ declare namespace Deno {
* Requires `allow-read` permission. */
export function readTextFileSync(path: string | URL): string;
/** Asynchronously reads and returns the entire contents of a file as a utf8
* encoded string. Reading a directory returns an empty data array.
/** Asynchronously reads and returns the entire contents of a file as utf8
* encoded string. Reading a directory returns an empty string.
*
* ```ts
* const data = await Deno.readTextFile("hello.txt");