MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / isServiceError

Function isServiceError

packages/web/src/lib/utils.ts:452–458  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

450}
451
452export const isServiceError = (data: unknown): data is ServiceError => {
453 return typeof data === 'object' &&
454 data !== null &&
455 'statusCode' in data &&
456 'errorCode' in data &&
457 'message' in data;
458}
459
460export const getFormattedDate = (date: Date) => {
461 const now = new Date();

Callers 15

authenticatedPageFunction · 0.90
withAuthFunction · 0.90
withOptionalAuthFunction · 0.90
grep.tsFile · 0.90
listTree.tsFile · 0.90
listCommits.tsFile · 0.90
getDiff.tsFile · 0.90
listRepos.tsFile · 0.90
glob.tsFile · 0.90
readFile.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected