Object destructuring in TypeScript

Object destructuring in TypeScript

rest and spread operator javascript

Object destructuring is a powerful ES 6 feature that can help developers write cleaner code. It allows us to extract properties from a JavaScript object into variables. If you are unfamiliar with it, read our post about object destructuring to know more about what is possible using it. When it comes to object destructuring in TypeScript, the following statement doesn’t work.

Source