Interface Events<RType>

The listing of events that a Minipass class can emit. Extend this when extending the Minipass class, and pass as the third template argument. The key is the name of the event, and the value is the argument list.

Any undeclared events will still be allowed, but the handler will get arguments as unknown[].

Type Parameters

  • RType extends any = Buffer

Hierarchy

  • EventArguments
    • Events

Properties

[DESTROYED]: [er?: unknown]
[ERROR]: [er: unknown]
abort: [reason: unknown]
close: []
data: [chunk: RType]
drain: []
end: []
error: [er: unknown]
finish: []
prefinish: []
readable: []
resume: []

Generated using TypeDoc