Response.variables.readJsonWithSchema
fx-fetch / Response / readJsonWithSchema
Variable: readJsonWithSchema()
Section titled “Variable: readJsonWithSchema()”
constreadJsonWithSchema: {<A,I,R>(response,schema):Effect<A,MalformedJsonError|ParseError,R>; <A,I,R>(schema): (response) =>Effect<A,MalformedJsonError|ParseError,R>; }
Defined in: packages/fx-fetch/src/Response/readJsonWithSchema.ts:21
Reads a JSON response with the given schema.
Call Signature
Section titled “Call Signature”<
A,I,R>(response,schema):Effect<A,MalformedJsonError|ParseError,R>
Reads a JSON response with the given schema.
Type Parameters
Section titled “Type Parameters”A
I
R
Parameters
Section titled “Parameters”response
Section titled “response”schema
Section titled “schema”Schema<A, I, R>
Returns
Section titled “Returns”Effect<A, MalformedJsonError | ParseError, R>
0.1.0
Call Signature
Section titled “Call Signature”<
A,I,R>(schema): (response) =>Effect<A,MalformedJsonError|ParseError,R>
Reads a JSON response with the given schema.
Type Parameters
Section titled “Type Parameters”A
I
R
Parameters
Section titled “Parameters”schema
Section titled “schema”Schema<A, I, R>
Returns
Section titled “Returns”(
response):Effect<A,MalformedJsonError|ParseError,R>
Parameters
Section titled “Parameters”response
Section titled “response”Returns
Section titled “Returns”Effect<A, MalformedJsonError | ParseError, R>
0.1.0
0.1.0