{
  "id": "@typed/fx#Push.mapError",
  "canonicalId": "@typed/fx/Push#mapError",
  "symbol": {
    "id": "@typed/fx#Push.mapError",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Push.mapError",
    "kind": "constant",
    "signatures": [
      "export declare const mapError: {\n    <E2, E3>(f: (e: E2) => E3): <A, E, R, B, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, B, E3, R2>;\n    <A, E, R, B, E2, R2, E3>(push: Push<A, E, R, B, E2, R2>, f: (e: E2) => E3): Push<A, E, R, B, E3, R2>;\n};"
    ],
    "summary": "Transforms the output (Fx) error channel of a `Push` using the provided function.\n\nFailures (Cause) are mapped via `Cause.map`, so only the typed failure (`Fail`)\nis transformed; defects and interrupts are preserved unchanged.\n\nMirrors `Effect.mapError` on the Fx side. Cardinality, value order, input\ncallbacks, and output service requirements are unchanged.",
    "sections": {
      "Why": "Normalize an output failure type at the observation boundary without touching\ninput errors or collapsing defects and interruption into typed failures.",
      "Ownership and lifetime": "The mapping is synchronous and resource-free. It runs when the output Cause is\ndelivered and preserves the upstream subscription, Scope, interruption, and\ncleanup behavior."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Fx from \"@typed/fx/Fx\"\nimport * as Push from \"@typed/fx/Push\"\nimport * as Sink from \"@typed/fx/Sink\"\n\nconst push = Push.make(Sink.make(() => Effect.void, (_: string) => Effect.void), Fx.fail(\"offline\"))\nconst normalized = Push.mapError(push, (message) => ({ message }))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Push/Push.ts",
      "line": 944
    },
    "since": "1.0.0",
    "category": "Output failures"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Push.mapError",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Push",
    "qualifiedName": "Push.mapError",
    "declarationKey": "declaration:18c94c6bb087b00d5b2feb80",
    "family": "variable",
    "signatures": [
      "export declare const mapError: {\n    <E2, E3>(f: (e: E2) => E3): <A, E, R, B, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, B, E3, R2>;\n    <A, E, R, B, E2, R2, E3>(push: Push<A, E, R, B, E2, R2>, f: (e: E2) => E3): Push<A, E, R, B, E3, R2>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 944,
          "column": 14
        },
        "end": {
          "line": 962,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 945,
          "column": 3
        },
        "end": {
          "line": 947,
          "column": 83
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 948,
          "column": 3
        },
        "end": {
          "line": 951,
          "column": 31
        }
      }
    ],
    "aliases": [
      "@typed/fx/Push#mapError"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Push",
    "static": false,
    "importedFrom": "declaration:18c94c6bb087b00d5b2feb80"
  },
  "declaration": {
    "declarationKey": "declaration:18c94c6bb087b00d5b2feb80",
    "name": "mapError",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const mapError: {\n    <E2, E3>(f: (e: E2) => E3): <A, E, R, B, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, B, E3, R2>;\n    <A, E, R, B, E2, R2, E3>(push: Push<A, E, R, B, E2, R2>, f: (e: E2) => E3): Push<A, E, R, B, E3, R2>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 944,
              "column": 14
            },
            "end": {
              "line": 962,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<E2, E3>(f: (e: E2) => E3): <A, E, R, B, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, B, E3, R2>;",
          "<A, E, R, B, E2, R2, E3>(push: Push<A, E, R, B, E2, R2>, f: (e: E2) => E3): Push<A, E, R, B, E3, R2>;"
        ],
        "typeParameters": [
          "E2",
          "E3",
          "A",
          "E",
          "R",
          "B",
          "R2"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 945,
              "column": 3
            },
            "end": {
              "line": 947,
              "column": 83
            }
          },
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 948,
              "column": 3
            },
            "end": {
              "line": 951,
              "column": 31
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const mapError: {\n    <E2, E3>(f: (e: E2) => E3): <A, E, R, B, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, B, E3, R2>;\n    <A, E, R, B, E2, R2, E3>(push: Push<A, E, R, B, E2, R2>, f: (e: E2) => E3): Push<A, E, R, B, E3, R2>;\n};"
    ],
    "typeParameters": [
      "E2",
      "E3",
      "A",
      "E",
      "R",
      "B",
      "R2"
    ],
    "summary": "Transforms the output (Fx) error channel of a `Push` using the provided function.\n\nFailures (Cause) are mapped via `Cause.map`, so only the typed failure (`Fail`)\nis transformed; defects and interrupts are preserved unchanged.\n\nMirrors `Effect.mapError` on the Fx side. Cardinality, value order, input\ncallbacks, and output service requirements are unchanged.",
    "sections": {
      "Why": "Normalize an output failure type at the observation boundary without touching\ninput errors or collapsing defects and interruption into typed failures.",
      "Ownership and lifetime": "The mapping is synchronous and resource-free. It runs when the output Cause is\ndelivered and preserves the upstream subscription, Scope, interruption, and\ncleanup behavior."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Fx from \"@typed/fx/Fx\"\nimport * as Push from \"@typed/fx/Push\"\nimport * as Sink from \"@typed/fx/Sink\"\n\nconst push = Push.make(Sink.make(() => Effect.void, (_: string) => Effect.void), Fx.fail(\"offline\"))\nconst normalized = Push.mapError(push, (message) => ({ message }))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 944,
          "column": 14
        },
        "end": {
          "line": 962,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 945,
          "column": 3
        },
        "end": {
          "line": 947,
          "column": 83
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 948,
          "column": 3
        },
        "end": {
          "line": 951,
          "column": 31
        }
      }
    ],
    "since": "1.0.0",
    "category": "Output failures"
  }
}
