MCPcopy
hub / github.com/Effect-TS/effect / makeMap

Function makeMap

packages/cli/src/internal/options.ts:998–1007  ·  view source on GitHub ↗
(
  options: Options.Options<A>,
  f: (a: A) => Effect.Effect<B, ValidationError.ValidationError, FileSystem.FileSystem | Path.Path | Terminal.Terminal>
)

Source from the content-addressed store, hash-verified

996}
997
998const makeMap = <A, B>(
999 options: Options.Options<A>,
1000 f: (a: A) => Effect.Effect<B, ValidationError.ValidationError, FileSystem.FileSystem | Path.Path | Terminal.Terminal>
1001): Options.Options<B> => {
1002 const op = Object.create(proto)
1003 op._tag = "Map"
1004 op.options = options
1005 op.f = f
1006 return op
1007}
1008
1009const makeOrElse = <A, B>(
1010 left: Options.Options<A>,

Callers 2

options.tsFile · 0.70
modifySingleFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected