Whenever I utilize the gigwage client for my services, I encounter the following eslint error:
TS2742: The inferred type of 'findAll' cannot be named without a reference to '@gigwage/client/node_modules/axios'. This is likely not portable. A type annotation is necessary
async findAll(findContractorsDto: FindContractorsDto) {
try {
return this.gigwageClient.get<{ contractors: Contractor[] }>(
'/contractors?per_page=10&page=1',
);
} catch (e) {
Logger.error(e);
throw new Error(e);
}
}
Is there a way to resolve this eslint error issue?