Add generic type
This commit is contained in:
parent
eed36a4fe9
commit
d33d8dcad3
@ -17,7 +17,7 @@ function _accumulator<T>(
|
||||
const buffer: T[] = [];
|
||||
return new Transform({
|
||||
...options,
|
||||
transform(data: any, encoding, callback) {
|
||||
transform(data: T, encoding, callback) {
|
||||
try {
|
||||
accumulateBy(data, buffer, this);
|
||||
callback();
|
||||
|
@ -118,6 +118,7 @@ class Demux extends Writable {
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public once(event: string, cb: any) {
|
||||
switch (eventsTarget[event]) {
|
||||
case EventSubscription.Self:
|
||||
|
Loading…
Reference in New Issue
Block a user