(error: unknown)
| 12 | import type { z } from 'zod'; |
| 13 | |
| 14 | function isNotFound(error: unknown): boolean { |
| 15 | return ( |
| 16 | typeof error === 'object' && error !== null && (error as { code?: string }).code === 'ENOENT' |
| 17 | ); |
| 18 | } |
| 19 | |
| 20 | function assertNonConfigWrite(filePath: string): void { |
| 21 | if (basename(filePath) === 'config.toml') { |
no outgoing calls
no test coverage detected