MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeWithDefault

Function makeWithDefault

packages/cli/src/internal/options.ts:1055–1064  ·  view source on GitHub ↗
(
  options: Options.Options<A>,
  fallback: B
)

Source from the content-addressed store, hash-verified

1053}
1054
1055const makeWithDefault = <A, const B>(
1056 options: Options.Options<A>,
1057 fallback: B
1058): Options.Options<A | B> => {
1059 const op = Object.create(proto)
1060 op._tag = "WithDefault"
1061 op.options = options
1062 op.fallback = fallback
1063 return op
1064}
1065
1066const makeWithFallback = <A, B>(
1067 options: Options.Options<A>,

Callers 2

options.tsFile · 0.70
modifySingleFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…