mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 12:16:38 +08:00
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`.