NonNullable
is not resolved for a mapped type in a contextual parameter type from instantiated type alias
#51331
Labels
Bug
A bug in TypeScript
Bug Report
π Search Terms
NonNullable, Omit, mapped type, contextual type
π Version & Regression Information
β― Playground Link
Playground link with relevant code
Original repro case
π» Code
π Actual behavior
We can observe a type error in the
doesntWork
function and thekeyof
reporting incorrect result there for the given parameter type.π Expected behavior
There should be no error as the type for the
state
parameter in both functions is the same.cc @ahejlsberg
The text was updated successfully, but these errors were encountered: