-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Version 5.0.4 -> 5.1.3 Regression when using generic typesΒ #54805
Copy link
Copy link
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: check: Type InferenceRelated to type inference performed during signature resolution or `infer` type resolutionRelated to type inference performed during signature resolution or `infer` type resolutionFix AvailableA PR has been opened for this issueA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: check: Type InferenceRelated to type inference performed during signature resolution or `infer` type resolutionRelated to type inference performed during signature resolution or `infer` type resolutionFix AvailableA PR has been opened for this issueA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Bug Report
π Search Terms
Generic, 5.1.3
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?ts=5.1.3#code/C4TwDgpgBAMhAeBLAxgQwDYGED2BbXqAdgCYA8AKgAqojrarEB8UAvFAEoTLYBOZAzsB6JCAcwA0UQhABuEHowDcAKGWhIUAJKF+84OQTBqtesVYcIDbIXQhSAbyjBDALiiDhYqAF8lqgGYAroTIwIjWUMg8ls44+ERk5IwAFACUbnBIaFh4BCQUzPbKUCVQ0cCBPIRQ9t4q3qrcOsBaAHIAygCi7OQA+uSdABp9mADyALLjAIKtACIZCCgYcXlk2ro8+obGdAzMLMWR0aixuQlpikA
π» Code
π Actual behavior
The type of
INSERT_TEXT_COMMANDisLexicalCommand<TPayload>in5.1.3(butLexicalCommand<InsertTextPayload>in5.0.4).π Expected behavior
The type of
INSERT_TEXT_COMMANDshould beLexicalCommand<InsertTextPayload>.