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

Method map

packages/effect/src/SchemaGetter.ts:79–81  ·  view source on GitHub ↗
(f: (t: T) => T2)

Source from the content-addressed store, hash-verified

77 this.run = run
78 }
79 map<T2>(f: (t: T) => T2): Getter<T2, E, R> {
80 return new Getter((oe, options) => this.run(oe, options).pipe(Effect.mapEager(Option.map(f))))
81 }
82 compose<T2, R2>(other: Getter<T2, T, R2>): Getter<T2, E, R | R2> {
83 if (isPassthrough(this)) {
84 return other as any

Callers 15

Codegen.tsFile · 0.45
collectorModuleFunction · 0.45
messageMethod · 0.45
parseOpenApiFunction · 0.45
visitFunction · 0.45
normalizeSseEventSchemaFunction · 0.45

Calls 2

pipeMethod · 0.65
runMethod · 0.45

Tested by 15

runFunction · 0.36
extractFunction · 0.36
signatureFunction · 0.36
constructorMethod · 0.36
rawMethod · 0.36
snapshotMethod · 0.36
execMethod · 0.36
valueGroupsFunction · 0.36