(value: unknown)
| 52 | export type ErrorCode = (typeof ERROR_CODES)[number]; |
| 53 | |
| 54 | export function isErrorCode(value: unknown): value is ErrorCode { |
| 55 | return typeof value === 'string' && (ERROR_CODES as readonly string[]).includes(value); |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Exit-code mapping. INTERNAL maps to 1 |
no outgoing calls
no test coverage detected