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

Function makeWithDefault

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

Source from the content-addressed store, hash-verified

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