I am doing a class with 3 methods to create new instances of that class, but when i try to that , the following error appears :
"Angular/Typescript - This expression is not constructable. Type 'MoveDataClass' has no construct signatures."
What i am doing wrong?
The class:
export class MoveDataClass {
power;
stab;
efect;
constructor(power,stab,efect) {
this.power= power;
this.stab =stab;
this.efect= efect;
}
}
What i do to create the new class :
this.pokemonMovesCalculated[0] = new this.moveData(type);
The error appears on the "this.moveData" in red