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

Function optional

packages/effect/src/unstable/cli/Flag.ts:610–610  ·  view source on GitHub ↗
(param: Flag<A>)

Source from the content-addressed store, hash-verified

608 * @since 4.0.0
609 */
610export const optional = <A>(param: Flag<A>): Flag<Option.Option<A>> => Param.optional(param)
611
612/**
613 * Provides a default value for a flag when it's not specified.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected