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

Function transform

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

Source from the content-addressed store, hash-verified

720 * @since 4.0.0
721 */
722export function transform<T, E>(f: (e: E) => T): Getter<T, E> {
723 return makeGetter({ _tag: "Transform", transform: f })
724}
725
726/**
727 * Creates a getter that applies an effectful transformation to present values.

Callers 15

SchemaGetter.tsFile · 0.70
StringFunction · 0.70
NumberFunction · 0.70
BooleanFunction · 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 1

makeGetterFunction · 0.85

Tested by

no test coverage detected