(error: unknown, code: string)
| 11 | * For runtime-aware containment, use `runtimeSkillPathUtils.ts` instead. |
| 12 | */ |
| 13 | export function hasErrorCode(error: unknown, code: string): boolean { |
| 14 | return ( |
| 15 | error != null && |
| 16 | typeof error === "object" && |
| 17 | "code" in error && |
| 18 | (error as { code?: unknown }).code === code |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | export function isAbsolutePathAny(filePath: string): boolean { |
| 23 | if (filePath.startsWith("/") || filePath.startsWith("\\")) { |
no outgoing calls
no test coverage detected