Skip to main content

isNetworkError()

function isNetworkError(error: Error): error is NetworkError;

Type guard to check if an error is a network error

Parameters

ParameterType
errorError

Returns

error is NetworkError