Interface EmitFunc<Return, Chunk, Err>
Type parameters
-
Return
-
Chunk: string | Buffer
-
Err = any
Callable
- __call(event: "data", data: Chunk): Return
- __call(event: "error", error: Err): Return
- __call(event: "close"): Return
-
Parameters
-
event: "data"
-
data: Chunk
Returns Return
-
Parameters
-
event: "error"
-
error: Err
Returns Return
-
Parameters
Returns Return
Function that emits events