I got error of Catch clause variable type annotation must be 'any' or 'unknown' if specified.ts(1196)
with below code
import axios, { AxiosError } from "axios";
try {
} catch(error: AxiosError) {
throw Error(error);
}
How to throw axios error in TS?