Skip to content

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.

<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.

To extends Any

From extends Any

To

{ decode: (fromA, fromI) => Encoded<To>; encode: (toI, toA) => Type<From>; strict?: true; } | { decode: (fromA, fromI) => unknown; encode: (toI, toA) => unknown; strict: false; }

(from): transform<From, To>

From

transform<From, To>

3.10.0

<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.

To extends Any

From extends Any

From

To

{ decode: (fromA, fromI) => Encoded<To>; encode: (toI, toA) => Type<From>; strict?: true; } | { decode: (fromA, fromI) => unknown; encode: (toI, toA) => unknown; strict: false; }

transform<From, To>

3.10.0

3.10.0