diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-01-22 07:58:24 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-21 21:58:24 +0100 |
commit | e58462dbb9b8b611628c5d8da7e523e48a58242c (patch) | |
tree | 61441d62da93b46565cfeeedfe22d977432daf4c /cli/tsc/dts/lib.deno.ns.d.ts | |
parent | 1b9f0cb452e672c187233de23cd74c7f8a3f773b (diff) |
chore: use `Deno.writeTextFile()` where appropriate (#22008)
Diffstat (limited to 'cli/tsc/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/tsc/dts/lib.deno.ns.d.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 4107e1369..f17f9088d 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -3717,7 +3717,7 @@ declare namespace Deno { * * ```ts * const file = await Deno.makeTempFile(); - * await Deno.writeFile(file, new TextEncoder().encode("Hello World")); + * await Deno.writeTextFile(file, "Hello World"); * await Deno.truncate(file, 7); * const data = await Deno.readFile(file); * console.log(new TextDecoder().decode(data)); // "Hello W" |