(effect: Effect.Effect<A, ACPService.Error>)
| 86 | } |
| 87 | |
| 88 | function run<A>(effect: Effect.Effect<A, ACPService.Error>) { |
| 89 | return Effect.runPromise(effect.pipe(Effect.mapError(ACPError.toRequestError))).catch((defect: unknown) => { |
| 90 | if (defect instanceof RequestError) throw defect |
| 91 | throw ACPError.toRequestError(ACPError.fromUnknownDefect(defect)) |
| 92 | }) |
| 93 | } |
| 94 | |
| 95 | export * as ACP from "./agent" |
no outgoing calls
no test coverage detected