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