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

Function withHidden

packages/effect/src/unstable/cli/Param.ts:1024–1029  ·  view source on GitHub ↗
(self: Param<Kind, A>)

Source from the content-addressed store, hash-verified

1022 * @since 4.0.0
1023 */
1024export const withHidden = <Kind extends ParamKind, A>(self: Param<Kind, A>): Param<Kind, A> =>
1025 transformSingle(self, <X>(single: Single<Kind, X>) =>
1026 makeSingle({
1027 ...single,
1028 hidden: true
1029 }))
1030
1031/**
1032 * Transforms the parsed value of an option using a mapping function.

Callers

nothing calls this directly

Calls 2

transformSingleFunction · 0.85
makeSingleFunction · 0.70

Tested by

no test coverage detected