-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Help WantedYou can do thisYou can do this
Milestone
Description
A friend of mine recently tried using JSX generics and it seems like the fix in #34958 did not work for them.
Here is an oversimplified code snippet that replicates the issue. We've tried this in two different machines and neither worked:
import * as React from "react"
type Variations = "hello" | "baaaaa" | "click"
const MyGeneric = <T extends Variations>({ }) => {
return <div></div>
}
const Issue = () => {
return <MyGeneric<"ctrl+space should bring up suggestions here">></MyGeneric>
}
Originally posted by @varemenos in #34110 (comment)
zardoy, varemenos, zedryas, sadan4 and Not-Jayden
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Help WantedYou can do thisYou can do this