Typings always return "never" for Octokit calls from @actions/github
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
I've reused code from the readme to try a few things and the return value for all calls to octokit.rest.X is always never.
To Reproduce
Steps to reproduce the behavior:
- Create an index.ts file with the default usage from https://github.com/actions/toolkit/tree/main/packages/github#usage
- Replace require statement with imports if needed
- Notice TS errors because
pull_requestis typednever.
Expected behavior
Return value should be properly set
Screenshots

Notice the return value from get is Promise<never>. All calls return the same thing, issues, checks, etc..
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the default usage in the packages/github README and reproduce the issue in an index.ts file using the documented imports. Inspect why octokit.rest calls such as pull_request.get are inferred as Promise; done means the calls expose their proper return types and the reproduction no longer produces TypeScript errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100