I am brand new to typescript, and I have two classes. In the parent class I have:
abstract class Component { public deps: any = {}; public props: any = {
Add a type to your variable and then return.
Eg:
const myVariable : string [] = ['hello', 'there']; const result = myVaraible.map(x=> { return { x.id } });
=> Important part is adding the string[] type etc: