-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Playground typing issueΒ #63334
Copy link
Copy link
Open
Description
π Search Terms
TypeScript Playground error when attempting to import something from @octokit/core/types
π Version & Regression Information
Seems irrelavent to TS version
β― Playground Link
π» Code
import * as OctokitTypes from '@octokit/core/types';π Actual behavior
Behavior 1:
Type of the following variable is recognized as any:
import { Octokit } from 'octokit';
export type T = typeof Octokit;Behavior 2:
Type of the following variable is recognized as any;
import * as OctokitTypes from '@octokit/core/types';
export const OctokitTypes;Behavior 3: Even stranger behavior
In the following code snippet:
import * as OctokitTypes from '@octokit/core/types';- Remove any character from package name
@octokit/core/types(e.g.@octokit/core/type), TS error occured, which is expected

- Re-add the removed character, TS error remained, which is very weird

Apparently there is some problem with the language server, as the package name has been changed to*/types, but it still reports error of*/type
π Expected behavior
N/A
Additional information about the issue
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels