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