You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using a mapped type, can't Exclude "undefined" from an optional property #24067
The example below shows how one ought to be able to implement the opposite of the mapped type Partial<T>, which should removeundefined from the type of every single property in an interface.
You can never truly remove undefined from an optional property, but you remove optionality with mapped type modifiers (#21919), or use the Required type which is part of lib.d.ts now.
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Activity
DanielRosenwasser commentedon May 11, 2018
You can never truly remove
undefinedfrom an optional property, but you remove optionality with mapped type modifiers (#21919), or use theRequiredtype which is part oflib.d.tsnow.typescript-bot commentedon May 30, 2018
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.