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

Function makeWithDefault

packages/cli/src/internal/args.ts:709–718  ·  view source on GitHub ↗
(
  self: Args.Args<A>,
  fallback: B
)

Source from the content-addressed store, hash-verified

707}
708
709const makeWithDefault = <A, const B>(
710 self: Args.Args<A>,
711 fallback: B
712): Args.Args<A | B> => {
713 const op = Object.create(proto)
714 op._tag = "WithDefault"
715 op.args = self
716 op.fallback = fallback
717 return op
718}
719
720const makeWithFallbackConfig = <A, B>(
721 args: Args.Args<A>,

Callers 3

optionalFunction · 0.70
args.tsFile · 0.70
withDescriptionInternalFunction · 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…