MCPcopy Create free account
hub / github.com/Botloader/botloader / isErrorResponse

Function isErrorResponse

frontend-common/src/api_client.ts:284–286  ·  view source on GitHub ↗
(resp: any)

Source from the content-addressed store, hash-verified

282export type ApiResult<T> = T | ApiError;
283
284export function isErrorResponse(resp: any): resp is ApiError {
285 return resp instanceof ApiError;
286}
287
288export class ApiError {
289 resp_code: number;

Callers 15

delScriptFunction · 0.85
toggleScriptFunction · 0.85
createScriptFunction · 0.85
GuildsProviderFunction · 0.85
validateAndUpdateSessionFunction · 0.85
useFetchDataFunction · 0.85
saveFunction · 0.85
validateScriptFunction · 0.85
updatePluginVersionFunction · 0.85
addToServerFunction · 0.85
fetchNewsFunction · 0.85
fetchNewsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected