Contextual parameter types failed to be provided based on filtering mapped types #56881
Labels
Help Wanted
You can do this
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
π Search Terms
contextual parameter filtering mapped type inference generic
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?ts=5.4.0-dev.20231226#code/CYUwxgNghgTiAEAzArgOzAFwJYHtVIEYAeAFXhAA8MRVgBneHAIwCtwMA+ACgCh55gUDFABc8EgBo+8ABZRaEEDDpiA3vADaABXhZ8AaxABPHInHwoDLQF0xXAG5QIyEGJLbrE+AAcYOb2JaAJTwALwc8PY4WMDwAL5SQWJRMQDcPDyIBLz8qtL8iDg4YgAMUvz8TLBiAEQ15fENeRVIRXaOziBehkYh4fCqCfnwVTDtTi7dxn0Rgw1DQek8oJCwCCjo2HhIAEyk5FQ09Iys7NzSgsJuDXIKSioDmjp68D2m5pbiHgfUtAx0GBgegA5vAAPzwHRiVAgexKWzwBwTVxfGxeXz+QIzSLRWILZK4paIHY5AbDQrFeBlYajWr1aRDXI06qIjqTV7TMKzRmNHiLIA
π» Code
π Actual behavior
All of those functions report:
π Expected behavior
I'd expect all of those parameters to be contextually typed without problems.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: