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

Method mapMembers

packages/effect/src/Schema.ts:4856–4856  ·  view source on GitHub ↗

* Returns a new union with the members modified by the provided function. * * **Details** * * Options: * * - `unsafePreserveChecks` - if `true`, keep any `.check(...)` constraints * that were attached to the original union. Defaults to `false`. * * **Warning**: This is

(
    f: (members: Members) => To,
    options?: {
      readonly unsafePreserveChecks?: boolean | undefined
    } | undefined
  )

Source from the content-addressed store, hash-verified

4854 * after the transformation.
4855 */
4856 mapMembers<To extends ReadonlyArray<Constraint>>(
4857 f: (members: Members) => To,
4858 options?: {
4859 readonly unsafePreserveChecks?: boolean | undefined

Callers 4

Union.tst.tsFile · 0.65
Schema.tst.tsFile · 0.65
Literals.tst.tsFile · 0.65
Schema.test.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected