MCPcopy Index your code
hub / github.com/HisMax/RedInk / isAppError

Function isAppError

frontend/src/utils/errors.ts:72–78  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

70}
71
72function isAppError(value: any): value is AppError {
73 return !!value
74 && typeof value === 'object'
75 && typeof value.code === 'string'
76 && typeof value.title === 'string'
77 && typeof value.detail === 'string'
78}
79
80function legacyMessageToError(
81 message: string,

Callers 1

normalizeApiErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected