WritableStreamDefaultWriter
Defined in: node_modules/.pnpm/@types+node@24.6.2/node_modules/@types/node/stream/web.d.ts:315
This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.
Type Parameters
Section titled “Type Parameters”Type Parameter | Default type |
---|---|
W | any |
Properties
Section titled “Properties”closed
Section titled “closed”readonly closed: Promise<void>;
Defined in: node_modules/.pnpm/@types+node@24.6.2/node_modules/@types/node/stream/web.d.ts:316
desiredSize
Section titled “desiredSize”readonly desiredSize: null | number;
Defined in: node_modules/.pnpm/@types+node@24.6.2/node_modules/@types/node/stream/web.d.ts:317
readonly ready: Promise<void>;
Defined in: node_modules/.pnpm/@types+node@24.6.2/node_modules/@types/node/stream/web.d.ts:318
Methods
Section titled “Methods”abort()
Section titled “abort()”abort(reason?): Promise<void>;
Defined in: node_modules/.pnpm/@types+node@24.6.2/node_modules/@types/node/stream/web.d.ts:319
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
reason? | any |
Returns
Section titled “Returns”Promise
<void
>
close()
Section titled “close()”close(): Promise<void>;
Defined in: node_modules/.pnpm/@types+node@24.6.2/node_modules/@types/node/stream/web.d.ts:320
Returns
Section titled “Returns”Promise
<void
>
releaseLock()
Section titled “releaseLock()”releaseLock(): void;
Defined in: node_modules/.pnpm/@types+node@24.6.2/node_modules/@types/node/stream/web.d.ts:321
Returns
Section titled “Returns”void
write()
Section titled “write()”write(chunk?): Promise<void>;
Defined in: node_modules/.pnpm/@types+node@24.6.2/node_modules/@types/node/stream/web.d.ts:322
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
chunk? | W |
Returns
Section titled “Returns”Promise
<void
>