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

Method mapElements

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

* Returns a new tuple with the elements 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 i

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

Source from the content-addressed store, hash-verified

4357 * after the transformation.
4358 */
4359 mapElements<To extends Tuple.Elements>(
4360 f: (elements: Elements) => To,
4361 options?: {
4362 readonly unsafePreserveChecks?: boolean | undefined

Callers 2

Tuple.tst.tsFile · 0.80
Schema.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected