Answer the question
In order to leave comments, you need to log in
Failed to narrow error type in catch clause?
async Furia(URL) {
try {
const Res = await fetch(URL);
const Furia0= await Res.json();
return Furia0;
} catch (FuriaError) { //type FuriaError?
return FuriaError;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question