{
  "id": "@typed/fx/Push#map",
  "canonicalId": "@typed/fx/Push#map",
  "symbol": {
    "id": "@typed/fx/Push#map",
    "packageName": "@typed/fx",
    "moduleName": "Push",
    "exportName": "map",
    "kind": "constant",
    "signatures": [
      "export declare const map: {\n    <B, C>(f: (b: B) => C): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, C, E2, R2>;\n    <A, E, R, B, E2, R2, C>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => C): Push<A, E, R, C, E2, R2>;\n};"
    ],
    "summary": "Synchronously transforms every value emitted by the Fx output side.\n\nIt emits exactly one `C` for every upstream `B`, preserving order and the\ncomplete input Sink. The mapping does not buffer or introduce concurrency.",
    "sections": {
      "Why": "Adapt observed events without changing the commands the bidirectional boundary\naccepts.",
      "Ownership and lifetime": "`f` runs in the upstream Fx delivery path and owns no resource. Output\nsubscription, interruption, failures, services, and cleanup remain those of the\nwrapped Fx and downstream Sink."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Push from \"@typed/fx/Push\"\nimport { Fx } from \"@typed/fx\"\nimport * as Sink from \"@typed/fx/Sink\"\n\nconst program = Effect.gen(function* () {\n  const push = Push.make(\n    Sink.make(\n      (cause) => Effect.void,\n      (value) => Effect.void\n    ),\n    Fx.succeed(42)\n  )\n\n  // Map output from number to string\n  const mapped = Push.map(push, (n) => `Number: ${n}`)\n\n  // Observe the mapped output\n  yield* Fx.observe(mapped, (value) =>\n    Effect.sync(() => console.log(value))\n  )\n  // Output: \"Number: 42\"\n})"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Push/Push.ts",
      "line": 830
    },
    "since": "1.0.0",
    "category": "Transforming outputs"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Push#map",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": "Push",
    "consumerSpecifier": "@typed/fx/Push",
    "exportName": "map",
    "qualifiedName": "map",
    "declarationKey": "declaration:7abca4fbc9d3cb9ed9402bd8",
    "family": "variable",
    "signatures": [
      "export declare const map: {\n    <B, C>(f: (b: B) => C): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, C, E2, R2>;\n    <A, E, R, B, E2, R2, C>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => C): Push<A, E, R, C, E2, R2>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 830,
          "column": 14
        },
        "end": {
          "line": 845,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 831,
          "column": 3
        },
        "end": {
          "line": 833,
          "column": 84
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 834,
          "column": 3
        },
        "end": {
          "line": 834,
          "column": 101
        }
      }
    ],
    "aliases": [
      "@typed/fx#Push.map"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:7abca4fbc9d3cb9ed9402bd8",
    "name": "map",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const map: {\n    <B, C>(f: (b: B) => C): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, C, E2, R2>;\n    <A, E, R, B, E2, R2, C>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => C): Push<A, E, R, C, E2, R2>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 830,
              "column": 14
            },
            "end": {
              "line": 845,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<B, C>(f: (b: B) => C): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, C, E2, R2>;",
          "<A, E, R, B, E2, R2, C>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => C): Push<A, E, R, C, E2, R2>;"
        ],
        "typeParameters": [
          "B",
          "C",
          "A",
          "E",
          "R",
          "E2",
          "R2"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 831,
              "column": 3
            },
            "end": {
              "line": 833,
              "column": 84
            }
          },
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 834,
              "column": 3
            },
            "end": {
              "line": 834,
              "column": 101
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const map: {\n    <B, C>(f: (b: B) => C): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, C, E2, R2>;\n    <A, E, R, B, E2, R2, C>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => C): Push<A, E, R, C, E2, R2>;\n};"
    ],
    "typeParameters": [
      "B",
      "C",
      "A",
      "E",
      "R",
      "E2",
      "R2"
    ],
    "summary": "Synchronously transforms every value emitted by the Fx output side.\n\nIt emits exactly one `C` for every upstream `B`, preserving order and the\ncomplete input Sink. The mapping does not buffer or introduce concurrency.",
    "sections": {
      "Why": "Adapt observed events without changing the commands the bidirectional boundary\naccepts.",
      "Ownership and lifetime": "`f` runs in the upstream Fx delivery path and owns no resource. Output\nsubscription, interruption, failures, services, and cleanup remain those of the\nwrapped Fx and downstream Sink."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Push from \"@typed/fx/Push\"\nimport { Fx } from \"@typed/fx\"\nimport * as Sink from \"@typed/fx/Sink\"\n\nconst program = Effect.gen(function* () {\n  const push = Push.make(\n    Sink.make(\n      (cause) => Effect.void,\n      (value) => Effect.void\n    ),\n    Fx.succeed(42)\n  )\n\n  // Map output from number to string\n  const mapped = Push.map(push, (n) => `Number: ${n}`)\n\n  // Observe the mapped output\n  yield* Fx.observe(mapped, (value) =>\n    Effect.sync(() => console.log(value))\n  )\n  // Output: \"Number: 42\"\n})"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 830,
          "column": 14
        },
        "end": {
          "line": 845,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 831,
          "column": 3
        },
        "end": {
          "line": 833,
          "column": 84
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 834,
          "column": 3
        },
        "end": {
          "line": 834,
          "column": 101
        }
      }
    ],
    "since": "1.0.0",
    "category": "Transforming outputs"
  }
}
