Skip to content

Function: isNosanaApiError()

ts
function isNosanaApiError(err): err is NosanaApiError;

Type guard narrowing an unknown caught value to NosanaApiError. Returns false for network/timeout/abort errors (which carry no status), letting callers treat those separately from server responses.

Parameters

ParameterType
errunknown

Returns

err is NosanaApiError