NonNullable
doesn't work on mapped types instantiated with null
/undefined
#57151
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
π Search Terms
mapped nonnullable empty object null undefined instantiation
π Version & Regression Information
β― Playground Link
https://www.staging-typescript.org/play?ts=5.4.0-dev.20240124#code/C4TwDgpgBAYg9nAPAFQHxQLxQHJwHbYCuANsQIYBGxEiA3lANoDSUAlnlANYQhwBmUZAF0AXIOZCoAX1QBYAFALQkKACUIAZxLBMsBIjwliqIA
π» Code
π Actual behavior
Result
is of typenull
π Expected behavior
Result
should be of typenever
Additional information about the issue
This likely gets closed as a design limitation like the one here: #56644
The text was updated successfully, but these errors were encountered: