I am using the BABYLON.GUI.XmlLoader to load my GUI in TypeScript and I want to connect it to a class but whatever I put in the constructor
const xmlLoader = new BABYLON.GUI.XmlLoader(this);
I get an error in Typescript. Any suggestions?
Argument of type ‘this’ is not assignable to parameter of type ‘null’.
Type ‘myclass’ is not assignable to type ‘null’.ts(234