{
  "id": "@typed/fx/Push#filterMapEffect",
  "canonicalId": "@typed/fx/Push#filterMapEffect",
  "symbol": {
    "id": "@typed/fx/Push#filterMapEffect",
    "packageName": "@typed/fx",
    "moduleName": "Push",
    "exportName": "filterMapEffect",
    "kind": "constant",
    "signatures": [
      "export declare const filterMapEffect: {\n    <B, C, E3, R3>(f: (b: B) => Effect.Effect<Option.Option<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<Option.Option<C>, E3, R3>): Push<A, E, R, C, E2 | E3, R2 | R3>;\n};"
    ],
    "summary": "Effectfully maps each Fx output and emits only resulting `Some` values.\n\nOne mapper Effect runs per upstream value. `Some(c)` emits once, `None` emits\nnothing, and failures join the output error channel. Sequential sources retain\norder; the input Sink remains unchanged.",
    "sections": {
      "Why": "This models service-backed lookup where absence is an ordinary filtered result\nbut operational failure must remain observable.",
      "Ownership and lifetime": "Mapper effects are owned and interrupted by the output subscription. Their\nservices join `R2` and failures join `E2`; the combinator adds no independent\nbuffer or resource."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Option } 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(\"one\"))\nconst ids = Push.filterMapEffect(push, (name) => Effect.succeed(name === \"one\" ? Option.some(1) : Option.none()))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Push/Push.ts",
      "line": 1222
    },
    "since": "1.0.0",
    "category": "Selecting outputs"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Push#filterMapEffect",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "Push",
    "consumerSpecifier": "@typed/fx/Push",
    "exportName": "filterMapEffect",
    "qualifiedName": "filterMapEffect",
    "declarationKey": "declaration:f252d03b6db2357ec6641df3",
    "family": "variable",
    "signatures": [
      "export declare const filterMapEffect: {\n    <B, C, E3, R3>(f: (b: B) => Effect.Effect<Option.Option<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<Option.Option<C>, E3, R3>): Push<A, E, R, C, E2 | E3, R2 | R3>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 1222,
          "column": 14
        },
        "end": {
          "line": 1249,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 1223,
          "column": 3
        },
        "end": {
          "line": 1225,
          "column": 94
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 1226,
          "column": 3
        },
        "end": {
          "line": 1229,
          "column": 41
        }
      }
    ],
    "aliases": [
      "@typed/fx#Push.filterMapEffect"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:f252d03b6db2357ec6641df3",
    "name": "filterMapEffect",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const filterMapEffect: {\n    <B, C, E3, R3>(f: (b: B) => Effect.Effect<Option.Option<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<Option.Option<C>, E3, R3>): Push<A, E, R, C, E2 | E3, R2 | R3>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 1222,
              "column": 14
            },
            "end": {
              "line": 1249,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<B, C, E3, R3>(f: (b: B) => Effect.Effect<Option.Option<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<Option.Option<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": 1223,
              "column": 3
            },
            "end": {
              "line": 1225,
              "column": 94
            }
          },
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 1226,
              "column": 3
            },
            "end": {
              "line": 1229,
              "column": 41
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const filterMapEffect: {\n    <B, C, E3, R3>(f: (b: B) => Effect.Effect<Option.Option<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<Option.Option<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 maps each Fx output and emits only resulting `Some` values.\n\nOne mapper Effect runs per upstream value. `Some(c)` emits once, `None` emits\nnothing, and failures join the output error channel. Sequential sources retain\norder; the input Sink remains unchanged.",
    "sections": {
      "Why": "This models service-backed lookup where absence is an ordinary filtered result\nbut operational failure must remain observable.",
      "Ownership and lifetime": "Mapper effects are owned and interrupted by the output subscription. Their\nservices join `R2` and failures join `E2`; the combinator adds no independent\nbuffer or resource."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Option } 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(\"one\"))\nconst ids = Push.filterMapEffect(push, (name) => Effect.succeed(name === \"one\" ? Option.some(1) : Option.none()))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 1222,
          "column": 14
        },
        "end": {
          "line": 1249,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 1223,
          "column": 3
        },
        "end": {
          "line": 1225,
          "column": 94
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 1226,
          "column": 3
        },
        "end": {
          "line": 1229,
          "column": 41
        }
      }
    ],
    "since": "1.0.0",
    "category": "Selecting outputs"
  }
}
