🧐 Incorrect type definition for "hooks" callback in v16 index.d.ts? #1769
-
We are still using v16.43.1 of this incredible library and for "insert reasons here" we aren't able to prioritize upgrading to v17 or later version. With that in mind, I've come across an issue using hook.wrap('request', callback) method on At line 33,707 the return type for the callback passed to But examples here and here show that the callback should return something. In typescript, it or my linter, is complaining that I can't return something from a method expected to be I think line 33,707 should have If that's the case, would you be able to release a minor or patch release of the v16 line? Since index.d.ts is generated, I think the actual code change would occur in Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks Doug for reporting the issue. The |
Beta Was this translation helpful? Give feedback.
-
See my pull request at https://github.com/octokit/rest.js/pull/1770 |
Beta Was this translation helpful? Give feedback.
See my pull request at https://github.com/octokit/rest.js/pull/1770