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

Function choiceWithValue

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

Source from the content-addressed store, hash-verified

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