Skip to content
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): make types with VS Code Typeahead and TypeScript 4.7 #399

Merged
merged 1 commit into from
Jun 25, 2022

Conversation

levenleven
Copy link
Contributor

Description

This PR attempts to address octokit/core.js#469 (route auto suggestion is not triggered).

The request definition was split to two overloads: one for known routes (keyof Endpoints) and another one for "catch all" Route (any string)

Additional info

The autocomplete stopped working in Typescript 4.7, but I couldn't find anything related in release notes.


Closes octokit/core.js#469

Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed locally that this change fixes the problem, and didn't find any other issues this change might introduce.

@gr2m gr2m added Type: Bug Something isn't working as documented, or is being fixed typescript Relevant to TypeScript users only labels Jun 25, 2022
@gr2m gr2m changed the title fix: request routes suggestions fix(RequestInterface): make types with VS Code Typeahead and TypeScript 4.7 Jun 25, 2022
@gr2m gr2m merged commit b5fa0ce into octokit:master Jun 25, 2022
@octokitbot
Copy link
Collaborator

🎉 This PR is included in version 6.37.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented, or is being fixed typescript Relevant to TypeScript users only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TypeScript] REST API route completion is not triggered
4 participants