mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
BREAKING(io): remove Deno.copy()
(#25345)
Towards #22079 --------- Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
This commit is contained in:
parent
241fa7bc97
commit
03d8e474d7
7 changed files with 0 additions and 139 deletions
21
cli/tsc/dts/lib.deno.ns.d.ts
vendored
21
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -1833,27 +1833,6 @@ declare namespace Deno {
|
|||
seekSync(offset: number | bigint, whence: SeekMode): number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @deprecated This will be removed in Deno 2.0. See the
|
||||
* {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
|
||||
* for migration instructions.
|
||||
*
|
||||
* @category I/O
|
||||
*
|
||||
* @param src The source to copy from
|
||||
* @param dst The destination to copy to
|
||||
* @param options Can be used to tune size of the buffer. Default size is 32kB
|
||||
*/
|
||||
export function copy(
|
||||
src: Reader,
|
||||
dst: Writer,
|
||||
options?: { bufSize?: number },
|
||||
): Promise<number>;
|
||||
|
||||
/** Open a file and resolve to an instance of {@linkcode Deno.FsFile}. The
|
||||
* file does not need to previously exist if using the `create` or `createNew`
|
||||
* open options. The caller may have the resulting file automatically closed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue