How to fix Type is not assignable to itself in TypeScript | DevErrors