( ast: AST.AST )
| 414 | } |
| 415 | |
| 416 | const schemaToResponse = ( |
| 417 | ast: AST.AST |
| 418 | ): (response: HttpClientResponse.HttpClientResponse) => Effect.Effect<any, any> => { |
| 419 | const encoding = HttpApiSchema.getEncoding(ast) |
| 420 | const decode = Schema.decode(schemaFromArrayBuffer(ast, encoding)) |
| 421 | return (response) => Effect.flatMap(response.arrayBuffer, decode) |
| 422 | } |
| 423 | |
| 424 | const Uint8ArrayFromArrayBuffer = Schema.transform( |
| 425 | Schema.Unknown as Schema.Schema<ArrayBuffer>, |
no test coverage detected
searching dependent graphs…