Closed liesauer closed 1 year ago
The DestinationStream
constructor accepts such an object. This module requires a DestinationStream
instance.
The
DestinationStream
constructor accepts such an object. This module requires aDestinationStream
instance.
@jsumners I just faced the same issue. Isn't DestinationStream
just an interface without any constructors?
@SkywaveTM the DestinationStream
declaring is wrong, it declares only required a write
function, but actually you need a WritableStream
(need to implements EventEmitter
) to make it work.
so the workaround is:
new Writable({
write(this, chunk, encoding, callback) {
const log = chunk.toString();
console.log(log);
callback();
},
})
DestinationStream
only requires awrite
function, but actually it's not working.