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

Function makeBoth

packages/cli/src/internal/options.ts:976–985  ·  view source on GitHub ↗
(
  left: Options.Options<A>,
  right: Options.Options<B>
)

Source from the content-addressed store, hash-verified

974}
975
976const makeBoth = <A, B>(
977 left: Options.Options<A>,
978 right: Options.Options<B>
979): Options.Options<[A, B]> => {
980 const op = Object.create(proto)
981 op._tag = "Both"
982 op.left = left
983 op.right = right
984 return op
985}
986
987const makeFullName = (str: string): [boolean, string] => str.length === 1 ? [true, `-${str}`] : [false, `--${str}`]
988

Callers 3

allFunction · 0.70
allTupledFunction · 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…