MCPcopy Create free account
hub / github.com/effect-app/libs / mapMembers

Method mapMembers

repos/effect/packages/effect/src/Schema.ts:4695–4695  ·  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

4693 *
4694 * - `unsafePreserveChecks` - if `true`, keep any `.check(...)` constraints
4695 * that were attached to the original union. Defaults to `false`.
4696 *
4697 * **Warning**: This is an unsafe operation. Since `mapFields`
4698 * transformations change the schema type, the original refinement functions

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