-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
Bug Report
π Search Terms
Template Literal Type
Default Value of Generic
Property Chain
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about Template Literay Type_
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
F, F1, F2in functionchainis infered wrongly asnever, never, neverwhen only first level propertyfieldis passedF2in functionchain("a.b")is infered asnever
π Expected behavior
Fin functionchainis infered correctly as"a", undefined, undefinedwhen only one argumentfieldis passedF2in functionchain("a.b")is infered asundefined
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue