-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.Effort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Fix AvailableA PR has been opened for this issueA PR has been opened for this issueHelp WantedYou can do thisYou can do this
Milestone
Description
// @filename: bar.ts
export type MyType = Record<string, string>
export function bar<T extends MyType>(obj: { prop: T }) {}
// @filename: foo.ts
import { bar } from "./bar";
function foo<T>(x: T) {
bar({ prop: x })
}Expected
import { bar, MyType } from "./bar";
function foo<T extends MyType>(x: T) {
bar({ prop: x })
}Actual
import { bar } from "./bar";
function foo<T extends MyType>(x: T) {
bar({ prop: x })
}Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.Effort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Fix AvailableA PR has been opened for this issueA PR has been opened for this issueHelp WantedYou can do thisYou can do this