MCPcopy
hub / github.com/xojs/xo / isErrorWithExitCode

Function isErrorWithExitCode

cli.ts:16–16  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

14import openReport from './lib/open-report.js';
15
16const isErrorWithExitCode = (error: unknown): error is Error & {exitCode: number} => error instanceof Error && 'exitCode' in error && typeof error.exitCode === 'number';
17
18const cli = meow(
19 `

Callers 1

cli.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…