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

Function makeWithFallback

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

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

Callers 2

options.tsFile · 0.85
modifySingleFunction · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected