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
| Parameter | Type |
|---|---|
err | unknown |
Returns
err is NosanaApiError