MCPcopy Index your code
hub / github.com/Effect-TS/effect / optional

Function optional

packages/cli/src/internal/args.ts:382–383  ·  view source on GitHub ↗
(self: Args.Args<A>)

Source from the content-addressed store, hash-verified

380
381/** @internal */
382export const optional = <A>(self: Args.Args<A>): Args.Args<Option.Option<A>> =>
383 makeWithDefault(map(self, Option.some), Option.none())
384
385/** @internal */
386export const repeated = <A>(self: Args.Args<A>): Args.Args<Array<A>> => makeVariadic(self, Option.none(), Option.none())

Callers

nothing calls this directly

Calls 2

makeWithDefaultFunction · 0.70
mapFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…