I am currently using three.d.ts from DefinitelyTyped along with TypeScript. Below is the code snippet I have:
class WoodStyle extends THREE.MeshBasicMaterial{
putTexture(image: any){
super.map=image;
}
constructor(){
LoadImage().then(putTexture);
super();
}
}
In this code, I am loading an image and updating the material with the new image. However, during compilation, I encounter an error message saying:
2340 Only public and protected methods of the base class are accessible via the 'super' keyword
. Can anyone help me understand what I am doing wrong?