[BUG]: Error TS2345 started appearing after upgrading from 19.0.6 to 19.0.7(latest)
aramovic79 opened this issue · 4 comments
What happened?
After upgrading @octokit/rest to the latest one, this TS2345 error started appearing:
Error TS2345: Argument of type '{ body: string; issue_number: number; owner: string; repo: string; }' is not assignable to parameter of type 'RequestParameters & Omit<{ owner: string; repo: string; issue_number: number; } & { data: never; }, "baseUrl" | "headers" | "mediaType">'
cc: @gr2m, @wolfy1339
Versions
Node v14.21.1 typescript@4.9.5 @octokit/rest@19.0.7
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Can you share the version of @octokit/types
that is installed?
I think this could be related to an issue in that package. octokit/types.ts#528
Can you share the version of
@octokit/types
that is installed?I think this could be related to an issue in that package. octokit/types.ts#528
Version is 9.1.2
As you spotted well - the issue is caused by the code here: @octokit/types/dist-types/generated/Endpoints.d.ts:14
What would be your proposal? We've for now downgraded version to the previous one.
For now downgrading is the only way to avoid this, until my fix gets landed
Closing as octokit/types.ts#528 tracks this already