How to fix Argument of type 'number' is not assignable to parameter of type 'string' in TypeScript | DevErrors