transformOrFail
transformOrFail: {<
To,From,RD,RE>(to,options): (from) =>transformOrFail<From,To,RD|RE>; <To,From,RD,RE>(from,to,options):transformOrFail<From,To,RD|RE>; }
Defined in: node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/dts/Schema.d.ts:1936
Create a new Schema by transforming the input and output of an existing Schema
using the provided decoding functions.
Call Signature
Section titled “Call Signature”<
To,From,RD,RE>(to,options): (from) =>transformOrFail<From,To,RD|RE>
Create a new Schema by transforming the input and output of an existing Schema
using the provided decoding functions.
Type Parameters
Section titled “Type Parameters”To extends Any
From extends Any
RD
RE
Parameters
Section titled “Parameters”To
options
Section titled “options”{ decode: (fromA, options, ast, fromI) => Effect<Encoded<To>, ParseIssue, RD>; encode: (toI, options, ast, toA) => Effect<Type<From>, ParseIssue, RE>; strict?: true; } | { decode: (fromA, options, ast, fromI) => Effect<unknown, ParseIssue, RD>; encode: (toI, options, ast, toA) => Effect<unknown, ParseIssue, RE>; strict: false; }
Returns
Section titled “Returns”(
from):transformOrFail<From,To,RD|RE>
Parameters
Section titled “Parameters”From
Returns
Section titled “Returns”transformOrFail<From, To, RD | RE>
3.10.0
Call Signature
Section titled “Call Signature”<
To,From,RD,RE>(from,to,options):transformOrFail<From,To,RD|RE>
Create a new Schema by transforming the input and output of an existing Schema
using the provided decoding functions.
Type Parameters
Section titled “Type Parameters”To extends Any
From extends Any
RD
RE
Parameters
Section titled “Parameters”From
To
options
Section titled “options”{ decode: (fromA, options, ast, fromI) => Effect<Encoded<To>, ParseIssue, RD>; encode: (toI, options, ast, toA) => Effect<Type<From>, ParseIssue, RE>; strict?: true; } | { decode: (fromA, options, ast, fromI) => Effect<unknown, ParseIssue, RD>; encode: (toI, options, ast, toA) => Effect<unknown, ParseIssue, RE>; strict: false; }
Returns
Section titled “Returns”transformOrFail<From, To, RD | RE>
3.10.0
3.10.0