How to fix Cannot assign an abstract constructor type to a non-abstract constructor type in TypeScript | DevErrors