Files
DefinitelyTyped/types/node
Sami Kukkonen b0447ecb51 Add _destroy to for node Readable stream (#20068)
From the docs:
https://nodejs.org/api/stream.html#stream_readable_destroy_err_callback

As specified in
https://nodejs.org/api/stream.html#stream_readable_destroy_error
implementors are recommended to implement this method instead of
`destroy()` and the original method should be available for calling via
`super`.

This change matches the signatures of other Stream subclasses by
annotating `callback` as `Function` instead of `(err: Error) => void`.
2017-10-16 10:13:28 -07:00
..