-
Notifications
You must be signed in to change notification settings - Fork 23
[BUG]: TypeScript error when using with @octokit/rest #528
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
Comments
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with |
You cannot mix those versions. Please read the changelog before trying to use the module |
NOTE! I don't know if this is a types bug with -import { Octokit } from "@octokit/rest";
+import { Octokit } from "@octokit/core";
import { retry } from "@octokit/plugin-retry";
const MyOctokit = Octokit.plugin(retry); Then:
But I want to use import { Octokit } from "@octokit/rest";
import { retry } from "@octokit/plugin-retry";
const MyOctokit = Octokit.plugin(retry);
const octokit = new MyOctokit();
octokit.issues.listComments({
owner: "octokit",
repo: "plugin-retry.js",
issue_number: 528,
}); It's one or the other: |
Simply downgrade |
Ah. So of the 3 used |
Exactly. There is currently a snag that is blocking the update. |
What happened?
Steps to reproduce:
Create
code.ts
Init typescript
Run
tsc
linter:In VS Code:
Versions
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: