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

Function choiceWithValue

packages/cli/src/internal/options.ts:272–275  ·  view source on GitHub ↗
(
  name: string,
  choices: C
)

Source from the content-addressed store, hash-verified

270
271/** @internal */
272export const choiceWithValue = <const C extends ReadonlyArray<[string, any]>>(
273 name: string,
274 choices: C
275): Options.Options<C[number][1]> => makeSingle(name, Arr.empty(), InternalPrimitive.choice(choices))
276
277/** @internal */
278export const date = (name: string): Options.Options<Date> => makeSingle(name, Arr.empty(), InternalPrimitive.date)

Callers

nothing calls this directly

Calls 1

makeSingleFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…