Type guard for NetworkError.
catch (err) { if (isNetworkError(err)) { console.log('Network failure:', err.cause); }} Copy
catch (err) { if (isNetworkError(err)) { console.log('Network failure:', err.cause); }}
Type guard for NetworkError.