π Search Terms
TypeScript Playground error when attempting to import something from @octokit/core/types
π Version & Regression Information
Seems irrelavent to TS version
β― Playground Link
https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAKjgQwM5wPIGMYQNbAwAqAnmAKboBmUEIcA5AAIQ76ED0W05HMZlBgCghoSLDgBvTGwLwAvnBp1GrXHIYBuEdwB2qeAHNCACwCuAIzgBeOLvIB3GesIAKAJTah5AB7j4egbO7MQCqF6+-nD8FMFypLG2MeQQVHDGMOYW2kA
π» 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
π Search Terms
TypeScript Playground error when attempting to import something from
@octokit/core/typesπ Version & Regression Information
Seems irrelavent to TS version
β― Playground Link
https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAKjgQwM5wPIGMYQNbAwAqAnmAKboBmUEIcA5AAIQ76ED0W05HMZlBgCghoSLDgBvTGwLwAvnBp1GrXHIYBuEdwB2qeAHNCACwCuAIzgBeOLvIB3GesIAKAJTah5AB7j4egbO7MQCqF6+-nD8FMFypLG2MeQQVHDGMOYW2kA
π» Code
π Actual behavior
Behavior 1:
Type of the following variable is recognized as
any:Behavior 2:
Type of the following variable is recognized as
any;Behavior 3: Even stranger behavior
In the following code snippet:
@octokit/core/types(e.g.@octokit/core/type), TS error occured, which is expectedApparently 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