From 51e0bfda3c5df4fa1f1b36301193038ed6aaf7bf Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 12 Jul 2021 19:44:42 +0200 Subject: chore(runtime): deprecate `Deno.copy` (#11369) --- cli/dts/lib.deno.ns.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cli/dts/lib.deno.ns.d.ts') 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. * -- cgit v1.2.3