diff options
author | Luca Casonato <hello@lcas.dev> | 2021-07-12 19:44:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 19:44:42 +0200 |
commit | 51e0bfda3c5df4fa1f1b36301193038ed6aaf7bf (patch) | |
tree | f730a56750444a94fdb42e508326d61754d24e07 /cli/dts/lib.deno.ns.d.ts | |
parent | 00484d24ba93418bbdde8e42483d56e3714efaa0 (diff) |
chore(runtime): deprecate `Deno.copy` (#11369)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index e1c558f37..b5b61cd16 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -421,7 +421,11 @@ declare namespace Deno { seekSync(offset: number, whence: SeekMode): number; } - /** Copies from `src` to `dst` until either EOF (`null`) is read from `src` or + /** + * @deprecated Use `copy` from https://deno.land/std/io/util.ts instead. + * `Deno.copy` will be removed in Deno 2.0. + * + * Copies from `src` to `dst` until either EOF (`null`) is read from `src` or * an error occurs. It resolves to the number of bytes copied or rejects with * the first error encountered while copying. * |