MCPcopy Create free account
hub / github.com/Effect-TS/effect / transform

Function transform

packages/effect/src/SchemaGetter.ts:521–523  ·  view source on GitHub ↗
(f: (e: E) => T)

Source from the content-addressed store, hash-verified

519 * @since 4.0.0
520 */
521export function transform<T, E>(f: (e: E) => T): Getter<T, E> {
522 return transformOptional(Option.map(f))
523}
524
525/**
526 * Creates a getter that applies a fallible, effectful transformation to present values.

Callers 15

StringFunction · 0.70
NumberFunction · 0.70
BooleanFunction · 0.70
BigIntFunction · 0.70
DateFunction · 0.70
trimFunction · 0.70
capitalizeFunction · 0.70
uncapitalizeFunction · 0.70
snakeToCamelFunction · 0.70
camelToSnakeFunction · 0.70
toLowerCaseFunction · 0.70
toUpperCaseFunction · 0.70

Calls 2

transformOptionalFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected