Skip to main content
Module

x/enzastdlib/rpc-streams/encodedjson.ts>EncodedJSONWriter

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
interface EncodedJSONWriter
import { type EncodedJSONWriter } from "https://deno.land/x/enzastdlib@v0.0.4/rpc-streams/encodedjson.ts";

Represents a Streams API writer made by makeEncodedJSONWriter.

Properties

readonly
releaseLock: () => void

Releases the writing lock on a WritableStream.

readonly
write: (data: unknown) => Promise<void>

Writes JSON-compatible data to a WritableStream.