Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/xdg/vendor/types/deno.d.ts>Deno.Writer

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
interface Deno.Writer
import { type Deno } from "https://deno.land/x/xdg@v10.5.1/vendor/types/deno.d.ts";
const { Writer } = Deno;

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) or reject with the error encountered that caused the write to stop early. write() must reject with a non-null error if would resolve to n < p.byteLength. write() must not modify the slice data, even temporarily.

Implementations should not retain a reference to p.