Type guard for ConnectionError
Value to check
True if the value is a ConnectionError
if (isConnectionError(error)) { console.log("Connection error:", error.code);} Copy
if (isConnectionError(error)) { console.log("Connection error:", error.code);}
Type guard for ConnectionError