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

Function makeVariadic

packages/cli/src/internal/args.ts:732–743  ·  view source on GitHub ↗
(
  args: Args.Args<A>,
  min: Option.Option<number>,
  max: Option.Option<number>
)

Source from the content-addressed store, hash-verified

730}
731
732const makeVariadic = <A>(
733 args: Args.Args<A>,
734 min: Option.Option<number>,
735 max: Option.Option<number>
736): Args.Args<Array<A>> => {
737 const op = Object.create(proto)
738 op._tag = "Variadic"
739 op.args = args
740 op.min = min
741 op.max = max
742 return op
743}
744
745const validateInternal = (
746 self: Instruction,

Callers 3

args.tsFile · 0.70
repeatedFunction · 0.70
withDescriptionInternalFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected