-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Not planned
Labels
Design LimitationConstraints of the existing architecture prevent this from being fixedConstraints of the existing architecture prevent this from being fixed
Description
π Search Terms
mapped nonnullable empty object null undefined instantiation
π Version & Regression Information
- This changed in PR: Improve intersection reduction and CFA for truthy, equality, and typeof checks #49119
β― Playground Link
π» Code
type Foo<T> = NonNullable<{ [K in keyof T]: T[K] }>
type Result = Foo<null>
π Actual behavior
Result
is of type null
π Expected behavior
Result
should be of type never
Additional information about the issue
This likely gets closed as a design limitation like the one here: #56644
Metadata
Metadata
Assignees
Labels
Design LimitationConstraints of the existing architecture prevent this from being fixedConstraints of the existing architecture prevent this from being fixed
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
ahejlsberg commentedon Mar 6, 2024
That is indeed what I'm going to do. π
typescript-bot commentedon Mar 9, 2024
This issue has been marked as "Design Limitation" and has seen no recent activity. It has been automatically closed for house-keeping purposes.