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

Function makeMap

packages/cli/src/internal/options.ts:999–1008  ·  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

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

Callers 2

options.tsFile · 0.70
modifySingleFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected