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
Spread operator should work with generic types #13557
index.ts(2,10): error TS2698: Spread types may only be created from object types.
index.ts(5,10): error TS2698: Spread types may only be created from object types.
Reacted by Omar Diab, aionda, Daniel Hernandez, Peter Verswyvelen, James, Łukasz Sentkiewicz, Chintu Mohandas, yuretz, massimonewsuk, Mark Tiedemann and 14 more
Activity
HerringtonDarkholme commentedon Jan 18, 2017
Another example, it's quite hard for TypeScript to prove a type constraint is spreadable given structural typing
#2103 (comment)
billba commentedon Apr 24, 2017
Another example:
Build
2.3.0-dev.20170424giveserror TS2698: Spread types may only be created from object types.on...input,mhegazy commentedon Apr 24, 2017
Duplicate of #10727. Fixed by #13288
billba commentedon Apr 24, 2017
Mohamed Hegazy (@mhegazy) This is still happening in the current build.
mhegazy commentedon Apr 24, 2017
yes. #13288 is not merged yet. we do not have an ETA at the moment.
billba commentedon Apr 24, 2017
Aha, thanks.
LKay commentedon Apr 25, 2017
When it will be fixed finally? The problem persists and it's breaking code all over the place!
devlato commentedon Apr 20, 2018
Any plans fixing this?
massimonewsuk commentedon May 3, 2018
Is there a milestone or version that we can expect this to be fixed in?
nblavoie commentedon May 12, 2018
Count me in !
mcamou commentedon Jul 23, 2018
Any news on when/whether #13288 will be merged? This bug has been open for over a year now.
ivansky commentedon Aug 23, 2018
Mohamed Hegazy (@mhegazy)
It's not a duplicate! I am interested in fixing too.
Could you remove label and reopen the issue?
RyanCavanaugh commentedon Aug 24, 2018
Please read #13288 (comment)