2 ms·
Still not sure I understand. All the code in that link is valid TS - TS is just a superset of JS. Object spread is not part of the ES7 spec. It is a proposal w
by bcherny 10y ago
Still not sure I understand. All the code in that link is valid TS - TS is just a superset of JS.
Object spread is not part of the ES7 spec. It is a proposal which has not made it to stage 3 yet, and might still be dropped. That said, there is a TS issue tracking adding support for it: https://github.com/Microsoft/TypeScript/issues/2103 https://github.com/Microsoft/TypeScript/issues/2103.