(options: ApiDiffOptions)
| 149 | }) |
| 150 | |
| 151 | const run = (options: ApiDiffOptions): Effect.Effect<void, ApiDiffError> => |
| 152 | runInternal(options).pipe( |
| 153 | Effect.mapError((cause) => |
| 154 | isApiDiffError(cause) |
| 155 | ? cause |
| 156 | : new ApiDiffError({ |
| 157 | message: "API diff failed", |
| 158 | cause |
| 159 | }) |
| 160 | ) |
| 161 | ) |
| 162 | |
| 163 | return ApiDiff.of({ run }) |
| 164 | }) |