summaryrefslogtreecommitdiff
path: root/cli/tsc/dts
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-01-22 09:41:28 +1100
committerGitHub <noreply@github.com>2024-01-21 23:41:28 +0100
commit35fc6f3ab91a9f9fdecff5072677f12cde295f3a (patch)
tree93ad7a3e05b945262ad1da19f50f052d1e420347 /cli/tsc/dts
parentfbfeedb68b593d0dbf3f0bfb0061939756da20b7 (diff)
chore: use `Deno.readTextFile()` where appropriate (#22018)
Diffstat (limited to 'cli/tsc/dts')
-rw-r--r--cli/tsc/dts/lib.deno.ns.d.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts
index f17f9088d..af427fda2 100644
--- a/cli/tsc/dts/lib.deno.ns.d.ts
+++ b/cli/tsc/dts/lib.deno.ns.d.ts
@@ -2122,7 +2122,7 @@ declare namespace Deno {
* await Deno.write(file.rid, new TextEncoder().encode("Hello World"));
* await Deno.ftruncate(file.rid, 1);
* await Deno.fsync(file.rid);
- * console.log(new TextDecoder().decode(await Deno.readFile("my_file.txt"))); // H
+ * console.log(await Deno.readTextFile("my_file.txt")); // H
* ```
*
* @category I/O
@@ -2141,7 +2141,7 @@ declare namespace Deno {
* Deno.writeSync(file.rid, new TextEncoder().encode("Hello World"));
* Deno.ftruncateSync(file.rid, 1);
* Deno.fsyncSync(file.rid);
- * console.log(new TextDecoder().decode(Deno.readFileSync("my_file.txt"))); // H
+ * console.log(Deno.readTextFileSync("my_file.txt")); // H
* ```
*
* @category I/O
@@ -2157,7 +2157,7 @@ declare namespace Deno {
* );
* await Deno.write(file.rid, new TextEncoder().encode("Hello World"));
* await Deno.fdatasync(file.rid);
- * console.log(new TextDecoder().decode(await Deno.readFile("my_file.txt"))); // Hello World
+ * console.log(await Deno.readTextFile("my_file.txt")); // Hello World
* ```
*
* @category I/O
@@ -2175,7 +2175,7 @@ declare namespace Deno {
* );
* Deno.writeSync(file.rid, new TextEncoder().encode("Hello World"));
* Deno.fdatasyncSync(file.rid);
- * console.log(new TextDecoder().decode(Deno.readFileSync("my_file.txt"))); // Hello World
+ * console.log(Deno.readTextFileSync("my_file.txt")); // Hello World
* ```
*
* @category I/O