How to fix Parameter 'x' implicitly has an 'any' type in TypeScript | DevErrors