Currently working with TypeScript, I am looking to destructure properties from an object. The challenge lies in the fact that I need to assign it to a property on the constructor of the class:
var someData = [{title: 'some title', desc: 'some desc'}];
var [{title}] = someData; // 'some title';
I am aiming for something like this instead:
var [{title :as this.title$}] = someData;
Is there any way to achieve this functionality?