{
  "id": "@typed/fx#Push.mapEffect",
  "canonicalId": "@typed/fx/Push#mapEffect",
  "symbol": {
    "id": "@typed/fx#Push.mapEffect",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Push.mapEffect",
    "kind": "constant",
    "signatures": [
      "export declare const mapEffect: {\n    <B, C, E3, R3>(f: (b: B) => Effect.Effect<C, E3, R3>): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, C, E2 | E3, R2 | R3>;\n    <A, E, R, B, E2, R2, C, E3, R3>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => Effect.Effect<C, E3, R3>): Push<A, E, R, C, E2 | E3, R2 | R3>;\n};"
    ],
    "summary": "Effectfully transforms each Fx output value.\n\nThe mapper runs once per upstream value and emits one result on success, in\nupstream order for a sequential source. Its typed failures join `E2`; its\nrequired services join `R2`. The input side is unchanged.",
    "sections": {
      "Why": "Use this for output enrichment that needs Effect services or can fail while\nkeeping input handling independent.",
      "Ownership and lifetime": "Each mapper Effect runs inside the output subscription and is interrupted with\nit. No work starts before `run`; cleanup belongs to the upstream Fx and mapper\neffects. `mapEffect` itself introduces no separate buffer or long-lived fiber."
    },
    "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.succeed(2))\nconst doubled = Push.mapEffect(push, (n) => Effect.succeed(n * 2))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Push/Push.ts",
      "line": 880
    },
    "since": "1.0.0",
    "category": "Transforming outputs"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Push.mapEffect",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Push",
    "qualifiedName": "Push.mapEffect",
    "declarationKey": "declaration:30490712dc515a1e149d22dc",
    "family": "variable",
    "signatures": [
      "export declare const mapEffect: {\n    <B, C, E3, R3>(f: (b: B) => Effect.Effect<C, E3, R3>): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, C, E2 | E3, R2 | R3>;\n    <A, E, R, B, E2, R2, C, E3, R3>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => Effect.Effect<C, E3, R3>): Push<A, E, R, C, E2 | E3, R2 | R3>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 880,
          "column": 14
        },
        "end": {
          "line": 907,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 881,
          "column": 3
        },
        "end": {
          "line": 883,
          "column": 94
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 884,
          "column": 3
        },
        "end": {
          "line": 887,
          "column": 41
        }
      }
    ],
    "aliases": [
      "@typed/fx/Push#mapEffect"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Push",
    "static": false,
    "importedFrom": "declaration:30490712dc515a1e149d22dc"
  },
  "declaration": {
    "declarationKey": "declaration:30490712dc515a1e149d22dc",
    "name": "mapEffect",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const mapEffect: {\n    <B, C, E3, R3>(f: (b: B) => Effect.Effect<C, E3, R3>): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, C, E2 | E3, R2 | R3>;\n    <A, E, R, B, E2, R2, C, E3, R3>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => Effect.Effect<C, E3, R3>): Push<A, E, R, C, E2 | E3, R2 | R3>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 880,
              "column": 14
            },
            "end": {
              "line": 907,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<B, C, E3, R3>(f: (b: B) => Effect.Effect<C, E3, R3>): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, C, E2 | E3, R2 | R3>;",
          "<A, E, R, B, E2, R2, C, E3, R3>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => Effect.Effect<C, E3, R3>): Push<A, E, R, C, E2 | E3, R2 | R3>;"
        ],
        "typeParameters": [
          "B",
          "C",
          "E3",
          "R3",
          "A",
          "E",
          "R",
          "E2",
          "R2"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 881,
              "column": 3
            },
            "end": {
              "line": 883,
              "column": 94
            }
          },
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 884,
              "column": 3
            },
            "end": {
              "line": 887,
              "column": 41
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const mapEffect: {\n    <B, C, E3, R3>(f: (b: B) => Effect.Effect<C, E3, R3>): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, C, E2 | E3, R2 | R3>;\n    <A, E, R, B, E2, R2, C, E3, R3>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => Effect.Effect<C, E3, R3>): Push<A, E, R, C, E2 | E3, R2 | R3>;\n};"
    ],
    "typeParameters": [
      "B",
      "C",
      "E3",
      "R3",
      "A",
      "E",
      "R",
      "E2",
      "R2"
    ],
    "summary": "Effectfully transforms each Fx output value.\n\nThe mapper runs once per upstream value and emits one result on success, in\nupstream order for a sequential source. Its typed failures join `E2`; its\nrequired services join `R2`. The input side is unchanged.",
    "sections": {
      "Why": "Use this for output enrichment that needs Effect services or can fail while\nkeeping input handling independent.",
      "Ownership and lifetime": "Each mapper Effect runs inside the output subscription and is interrupted with\nit. No work starts before `run`; cleanup belongs to the upstream Fx and mapper\neffects. `mapEffect` itself introduces no separate buffer or long-lived fiber."
    },
    "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.succeed(2))\nconst doubled = Push.mapEffect(push, (n) => Effect.succeed(n * 2))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 880,
          "column": 14
        },
        "end": {
          "line": 907,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 881,
          "column": 3
        },
        "end": {
          "line": 883,
          "column": 94
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 884,
          "column": 3
        },
        "end": {
          "line": 887,
          "column": 41
        }
      }
    ],
    "since": "1.0.0",
    "category": "Transforming outputs"
  }
}
