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