ReadableStream
admin/discounts.internal.ReadableStream
This Streams API interface represents a readable stream of byte data.
Type parameters
R
objectRequiredProperties
locked
booleanRequiredMethods
[asyncIterator]
[asyncIterator](): AsyncIterableIterator
<R
>
Returns
cancel
cancel(reason?
): Promise
<void
>
Parameters
reason
anyReturns
Promise
<void
>
Promise
Promise<void>RequiredgetReader
getReader(): ReadableStreamDefaultReader
<R
>
Returns
ReadableStreamDefaultReader
<R
>
pipeThrough
pipeThrough<T
>(transform
, options?
): ReadableStream
<T
>
T
objectRequiredParameters
options
StreamPipeOptionsReturns
pipeTo
pipeTo(destination
, options?
): Promise
<void
>
Parameters
options
StreamPipeOptionsReturns
Promise
<void
>
Promise
Promise<void>Requiredtee
tee(): [ReadableStream
<R
>, ReadableStream
<R
>]
Returns
[ReadableStream
<R
>, ReadableStream
<R
>]
[[`ReadableStream`](/references/js-client/admin_discounts/modules/admin_discounts.internal#readablestream)<`R`\>, [`ReadableStream`](/references/js-client/admin_discounts/modules/admin_discounts.internal#readablestream)<`R`\>]
[ReadableStream<R>, ReadableStream<R>]Required
[[`ReadableStream`](/references/js-client/admin_discounts/modules/admin_discounts.internal#readablestream)<`R`\>, [`ReadableStream`](/references/js-client/admin_discounts/modules/admin_discounts.internal#readablestream)<`R`\>]
[ReadableStream<R>, ReadableStream<R>]Requiredvalues
values(options?
): AsyncIterableIterator
<R
>
Parameters
options
objectoptions.preventCancel
booleanReturns
Was this section helpful?