(error: unknown)
| 109 | } |
| 110 | |
| 111 | function findDataDirCompatibilityError(error: unknown): DataDirCompatibilityError | null { |
| 112 | if (error instanceof DataDirCompatibilityError) return error |
| 113 | if (error instanceof Error && error.cause) return findDataDirCompatibilityError(error.cause) |
| 114 | return null |
| 115 | } |
| 116 | |
| 117 | export function successResponse<T>(data: T, meta?: Record<string, unknown>) { |
| 118 | return { |
no outgoing calls
no test coverage detected