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
Type checker incorrectly refuses object spread of null or undefined #12460
// Logs three empty objects without errors in JavaScript.// Shows three "Spread types may only be created from object types." errors in TypeScript.// Tested on TypeScript Playground on May 26, 2018.constspread=<Textendsobject>(arg: T|null)=>({ ...arg})console.log(spread(null),{ ...null},{ ...undefined})
Activity
mhegazy commentedon Nov 30, 2016
@Kovensky please give tonight's
typescript@nexta try and let us know if you are still seeing issues.Jessidhia commentedon Nov 30, 2016
Mohamed Hegazy (@mhegazy) is there a way to know which commit was used to build a given nightly?
mhegazy commentedon Nov 30, 2016
The nightly snaps at 11:00 pm PST, anything merged in master before that should be there.
mjomble commentedon May 26, 2018
I found some cases where this is still an issue:
Playground link