Skip to content

@ralphschuler.ai function caller.index.<internal>.UnderlyingSink

github-actions edited this page Nov 26, 2023 · 1 revision

Interface: UnderlyingSink<W>

index.<internal>.UnderlyingSink

An underlying sink for constructing a WritableStream.

Type parameters

Name Type
W any

Table of contents

Properties

Properties

abort

Optional abort: UnderlyingSinkAbortCallback

A function that is called after the producer signals, via stream.abort() or writer.abort(), that they wish to abort the stream. It takes as its argument the same value as was passed to those methods by the producer.

Writable streams can additionally be aborted under certain conditions during piping; see the definition of the pipeTo() method for more details.

This function can clean up any held resources, much like (), but perhaps with some custom handling.

Defined in

node_modules/formdata-node/node_modules/web-streams-polyfill/types/ponyfill.d.ts:592


close

Optional close: UnderlyingSinkCloseCallback

A function that is called after the producer signals, via writer.close(), that they are done writing chunks to the stream, and subsequently all queued-up writes have successfully completed.

This function can perform any actions necessary to finalize or flush writes to the underlying sink, and release access to any held resources.

Defined in

node_modules/formdata-node/node_modules/web-streams-polyfill/types/ponyfill.d.ts:580


start

Optional start: UnderlyingSinkStartCallback

A function that is called immediately during creation of the WritableStream.

Defined in

node_modules/formdata-node/node_modules/web-streams-polyfill/types/ponyfill.d.ts:561


type

Optional type: undefined

Defined in

node_modules/formdata-node/node_modules/web-streams-polyfill/types/ponyfill.d.ts:593


write

Optional write: UnderlyingSinkWriteCallback<W>

A function that is called when a new chunk of data is ready to be written to the underlying sink. The stream implementation guarantees that this function will be called only after previous writes have succeeded, and never before () has succeeded or after () or () have been called.

This function is used to actually send the data to the resource presented by the underlying sink, for example by calling a lower-level API.

Defined in

node_modules/formdata-node/node_modules/web-streams-polyfill/types/ponyfill.d.ts:571

Typescript Libraries

Modules

Namespaces

Clone this wiki locally