Having trouble compiling my Typescript code.
Error Message: error TS2416: Property 'deepcopy' in type 'Vector2' is not assignable to the same property in base type 'Vector'.
I'm new to Typescript and encountered this issue shortly after starting. It seems simple, but I can't find a solution that works.
interface Vector {
deepcopy() : this;
}
export class Vector2 implements Vector {
constructor() {
}
deepcopy() {
return new Vector2();
}
}
Any hints or suggestions would be greatly appreciated.