Skip to content

js-bao-wss-client


js-bao-wss-client / isJsBaoApiError

Function: isJsBaoApiError() ​

isJsBaoApiError(e): e is JsBaoApiError

Type guard for JsBaoApiError: returns true when the server responded with a non-2xx HTTP status, narrowing the value so status, code, and body are available.

Parameters ​

e ​

any

Returns ​

e is JsBaoApiError

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30