-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(RequestInterface): Revert method overloading with adding some tests #405
Conversation
: RequestParameters | ||
): R extends keyof Endpoints | ||
? Promise<Endpoints[R]["response"]> | ||
: Promise<OctokitResponse<any>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we still need the overwrite? Shouldn't we combine this with L:26-29 as it was before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reverts commit b488f9c.
It's been a while but I think I found some smarter types when I worked on Octokit Next, maybe some of it might be applicable to the current types? Work on Ocotkit Next is stalled, unfortunately |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
🎉 This PR is included in version 6.38.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thank you for your reviewing and merging! 🙏 |
I have faced CI broken in
Bump @octokit/types from 6.37.0 to 6.37.1
ref: https://github.com/kachick/wait-other-jobs/runs/7064440245?check_suite_focus=true.It looks type mismatch with https://github.com/octokit/plugin-paginate-rest.js.
Removing
types.ts/src/RequestInterface.ts
Line 37 in 6e15b56
This PR is just a suggestion to includes the test. (Current test does not use exists tsconfig.json, so vscode is reporting some errors).
@levenleven I have cherry-picked your commit into this PR 🙏