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

Function makeBoth

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

Source from the content-addressed store, hash-verified

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

Callers 3

allFunction · 0.70
allTupledFunction · 0.70
modifySingleFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected