(decode: (input: I) => Effect.Effect<A, E>)
| 307 | */ |
| 308 | export const validateWith = |
| 309 | <A, I, E extends { readonly message: string }>(decode: (input: I) => Effect.Effect<A, E>) => |
| 310 | (payload: I) => |
| 311 | decode(payload).pipe(Effect.mapError((error) => invalidRequest(error.message))) |
| 312 | |
| 313 | /** |
| 314 | * Build an HTTP POST with a JSON body. Sets `content-type: application/json` |
nothing calls this directly
no test coverage detected