WritableStreamDefaultWriter
Defined in: node_modules/.pnpm/@types+node@24.7.0/node_modules/@types/node/stream/web.d.ts:311
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.7.0/node_modules/@types/node/stream/web.d.ts:312
desiredSize
Section titled “desiredSize”readonly desiredSize: null | number;
Defined in: node_modules/.pnpm/@types+node@24.7.0/node_modules/@types/node/stream/web.d.ts:313
readonly ready: Promise<void>;
Defined in: node_modules/.pnpm/@types+node@24.7.0/node_modules/@types/node/stream/web.d.ts:314
Methods
Section titled “Methods”abort()
Section titled “abort()”abort(reason?): Promise<void>;
Defined in: node_modules/.pnpm/@types+node@24.7.0/node_modules/@types/node/stream/web.d.ts:315
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.7.0/node_modules/@types/node/stream/web.d.ts:316
Returns
Section titled “Returns”Promise
<void
>
releaseLock()
Section titled “releaseLock()”releaseLock(): void;
Defined in: node_modules/.pnpm/@types+node@24.7.0/node_modules/@types/node/stream/web.d.ts:317
Returns
Section titled “Returns”void
write()
Section titled “write()”write(chunk?): Promise<void>;
Defined in: node_modules/.pnpm/@types+node@24.7.0/node_modules/@types/node/stream/web.d.ts:318
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
chunk? | W |
Returns
Section titled “Returns”Promise
<void
>