How to fix Class 'X' incorrectly implements interface 'Y' in TypeScript | DevErrors