ts2536 thrown when use key remapping to filter out some keys #45212
Labels
Experience Enhancement
Noncontroversial enhancements
Fix Available
A PR has been opened for this issue
Suggestion
An idea for TypeScript
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
π Search Terms
key remapping
ts2536
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Type
keyof Methods<T>
cannot be used to index typeT
. (2536)π Expected behavior
key remapping in type
Methods<T>
dose not make new keys, only filter out some of it. I think it could be used to typeT
in this case.The text was updated successfully, but these errors were encountered: