Type guard for TimeoutError
Value to check
True if the value is a TimeoutError
if (isTimeoutError(error)) { console.log("Request timed out");} Copy
if (isTimeoutError(error)) { console.log("Request timed out");}
Type guard for TimeoutError