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

Function makeWithFallback

packages/cli/src/internal/options.ts:1066–1075  ·  view source on GitHub ↗
(
  options: Options.Options<A>,
  effect: Effect.Effect<B, unknown, FileSystem.FileSystem | Path.Path | Terminal.Terminal>
)

Source from the content-addressed store, hash-verified

1064}
1065
1066const makeWithFallback = <A, B>(
1067 options: Options.Options<A>,
1068 effect: Effect.Effect<B, unknown, FileSystem.FileSystem | Path.Path | Terminal.Terminal>
1069): Options.Options<A | B> => {
1070 const op = Object.create(proto)
1071 op._tag = "WithFallback"
1072 op.options = options
1073 op.effect = effect
1074 return op
1075}
1076
1077const modifySingle = (self: Instruction, f: (single: Single) => Single): Options.Options<any> => {
1078 switch (self._tag) {

Callers 2

options.tsFile · 0.85
modifySingleFunction · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…