How to fix Overload signatures must be adjacent in TypeScript | DevErrors