Preparing search index...
The search index is not available
@shopify/oxygen-workers-types
@shopify/oxygen-workers-types
Transformer
Interface Transformer<I, O>
interface
Transformer
<
I
,
O
>
{
cancel
?:
(
(
reason
:
any
)
=>
void
|
Promise
<
void
>
)
;
expectedLength
?:
number
;
flush
?:
(
(
controller
:
TransformStreamDefaultController
<
O
>
)
=>
void
|
Promise
<
void
>
)
;
readableType
?:
string
;
start
?:
(
(
controller
:
TransformStreamDefaultController
<
O
>
)
=>
void
|
Promise
<
void
>
)
;
transform
?:
(
(
chunk
:
I
,
controller
:
TransformStreamDefaultController
<
O
>
)
=>
void
|
Promise
<
void
>
)
;
writableType
?:
string
;
}
Type Parameters
I
=
any
O
=
any
Index
Properties
cancel?
expected
Length?
flush?
readable
Type?
start?
transform?
writable
Type?
Properties
Optional
cancel
cancel
?:
(
(
reason
:
any
)
=>
void
|
Promise
<
void
>
)
Optional
expected
Length
expected
Length
?:
number
Optional
flush
flush
?:
(
(
controller
:
TransformStreamDefaultController
<
O
>
)
=>
void
|
Promise
<
void
>
)
Optional
readable
Type
readable
Type
?:
string
Optional
start
start
?:
(
(
controller
:
TransformStreamDefaultController
<
O
>
)
=>
void
|
Promise
<
void
>
)
Optional
transform
transform
?:
(
(
chunk
:
I
,
controller
:
TransformStreamDefaultController
<
O
>
)
=>
void
|
Promise
<
void
>
)
Optional
writable
Type
writable
Type
?:
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
cancel
expected
Length
flush
readable
Type
start
transform
writable
Type
@shopify/oxygen-workers-types
Loading...