How to fix Abstract methods can only appear within an abstract class in TypeScript | DevErrors