Skip to main content
Module

x/denoversion/lib/lib.deno_runtime.d.ts>io.Writer

Deno cli to manage and bump release versions.
Latest
interface io.Writer
import { type io } from "https://deno.land/x/denoversion@v1.0.2/lib/lib.deno_runtime.d.ts";
const { Writer } = io;

Methods

write(p: Uint8Array): Promise<number>

Writes p.byteLength bytes from p to the underlying data stream. It resolves to the number of bytes written from p (0 <= n <= p.byteLength) and any error encountered that caused the write to stop early. write() must return a non-null error if it returns n < p.byteLength. write() must not modify the slice data, even temporarily.

Implementations must not retain p.