-
Notifications
You must be signed in to change notification settings - Fork 13.4k
KnownKeys<T> breaking change in 4.3.1-rcΒ #44143
Copy link
Copy link
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Conditional TypesThe issue relates to conditional typesThe issue relates to conditional typesFix 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: Conditional TypesThe issue relates to conditional typesThe issue relates to conditional typesFix 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
KnownKeys, never, getting known interface keys
π Version & Regression Information
β― Playground Link
π» Code
π Actual behavior
demohas typenever.π Expected behavior
demohas type'foo' | 'bar'.Other info
I'm not sure where I got
KnownKeysfrom, but it appears on https://stackoverflow.com/a/51956054/123395.This issue impacted https://www.npmjs.com/package/idb, but I've already worked around the issue by using the other method on that StackOverflow post. jakearchibald/idb@e3c76a5