{
  "id": "@typed/fx/Fx#filterMapEffect",
  "canonicalId": "@typed/fx/Fx#filterMapEffect",
  "symbol": {
    "id": "@typed/fx/Fx#filterMapEffect",
    "packageName": "@typed/fx",
    "moduleName": "Fx",
    "exportName": "filterMapEffect",
    "kind": "constant",
    "signatures": [
      "export declare const filterMapEffect: {\n    <A, B, E2, R2>(f: (a: A) => Effect.Effect<Option.Option<B>, E2, R2>): <E, R>(self: Fx<A, E | E2, R>) => Fx<B, E | E2, R | R2>;\n    <A, E, R, B, E2, R2>(self: Fx<A, E | E2, R>, f: (a: A) => Effect.Effect<Option.Option<B>, E2, R2>): Fx<B, E | E2, R | R2>;\n};"
    ],
    "summary": "Maps and filters elements of an Fx using an effectful function.",
    "sections": {
      "Why": "`filterMapEffect` combines an Effectful decision and transformation without introducing nested\nstreams. `Some` emits once and `None` emits nothing. Producer callbacks are not serialized, so\noverlapping Effects can complete and emit in a different order than their inputs.",
      "Ownership and lifetime": "Each callback Effect follows its invoking producer delivery. Its failure Cause is sent to the\nSink, services remain exposed as `R2`, and no semaphore, queue, or resource is added."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Option } from \"effect\"\nimport { Fx } from \"@typed/fx\"\n\nconst accepted = Fx.fromIterable([1, 2]).pipe(\n  Fx.filterMapEffect((n) => Effect.succeed(n > 1 ? Option.some(n * 10) : Option.none()))\n)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/filterMapEffect.ts",
      "line": 36
    },
    "since": "1.0.0",
    "category": "Selecting values"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Fx#filterMapEffect",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "Fx",
    "consumerSpecifier": "@typed/fx/Fx",
    "exportName": "filterMapEffect",
    "qualifiedName": "filterMapEffect",
    "declarationKey": "declaration:76f918d2e2a3203404ff8469",
    "family": "variable",
    "signatures": [
      "export declare const filterMapEffect: {\n    <A, B, E2, R2>(f: (a: A) => Effect.Effect<Option.Option<B>, E2, R2>): <E, R>(self: Fx<A, E | E2, R>) => Fx<B, E | E2, R | R2>;\n    <A, E, R, B, E2, R2>(self: Fx<A, E | E2, R>, f: (a: A) => Effect.Effect<Option.Option<B>, E2, R2>): Fx<B, E | E2, R | R2>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/filterMapEffect.ts",
        "start": {
          "line": 36,
          "column": 14
        },
        "end": {
          "line": 52,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/filterMapEffect.ts",
        "start": {
          "line": 37,
          "column": 3
        },
        "end": {
          "line": 39,
          "column": 62
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/filterMapEffect.ts",
        "start": {
          "line": 41,
          "column": 3
        },
        "end": {
          "line": 44,
          "column": 28
        }
      }
    ],
    "aliases": [
      "@typed/fx#Fx.filterMapEffect"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:76f918d2e2a3203404ff8469",
    "name": "filterMapEffect",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const filterMapEffect: {\n    <A, B, E2, R2>(f: (a: A) => Effect.Effect<Option.Option<B>, E2, R2>): <E, R>(self: Fx<A, E | E2, R>) => Fx<B, E | E2, R | R2>;\n    <A, E, R, B, E2, R2>(self: Fx<A, E | E2, R>, f: (a: A) => Effect.Effect<Option.Option<B>, E2, R2>): Fx<B, E | E2, R | R2>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/filterMapEffect.ts",
            "start": {
              "line": 36,
              "column": 14
            },
            "end": {
              "line": 52,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A, B, E2, R2>(f: (a: A) => Effect.Effect<Option.Option<B>, E2, R2>): <E, R>(self: Fx<A, E | E2, R>) => Fx<B, E | E2, R | R2>;",
          "<A, E, R, B, E2, R2>(self: Fx<A, E | E2, R>, f: (a: A) => Effect.Effect<Option.Option<B>, E2, R2>): Fx<B, E | E2, R | R2>;"
        ],
        "typeParameters": [
          "A",
          "B",
          "E2",
          "R2",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/filterMapEffect.ts",
            "start": {
              "line": 37,
              "column": 3
            },
            "end": {
              "line": 39,
              "column": 62
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/filterMapEffect.ts",
            "start": {
              "line": 41,
              "column": 3
            },
            "end": {
              "line": 44,
              "column": 28
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const filterMapEffect: {\n    <A, B, E2, R2>(f: (a: A) => Effect.Effect<Option.Option<B>, E2, R2>): <E, R>(self: Fx<A, E | E2, R>) => Fx<B, E | E2, R | R2>;\n    <A, E, R, B, E2, R2>(self: Fx<A, E | E2, R>, f: (a: A) => Effect.Effect<Option.Option<B>, E2, R2>): Fx<B, E | E2, R | R2>;\n};"
    ],
    "typeParameters": [
      "A",
      "B",
      "E2",
      "R2",
      "E",
      "R"
    ],
    "summary": "Maps and filters elements of an Fx using an effectful function.",
    "sections": {
      "Why": "`filterMapEffect` combines an Effectful decision and transformation without introducing nested\nstreams. `Some` emits once and `None` emits nothing. Producer callbacks are not serialized, so\noverlapping Effects can complete and emit in a different order than their inputs.",
      "Ownership and lifetime": "Each callback Effect follows its invoking producer delivery. Its failure Cause is sent to the\nSink, services remain exposed as `R2`, and no semaphore, queue, or resource is added."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Option } from \"effect\"\nimport { Fx } from \"@typed/fx\"\n\nconst accepted = Fx.fromIterable([1, 2]).pipe(\n  Fx.filterMapEffect((n) => Effect.succeed(n > 1 ? Option.some(n * 10) : Option.none()))\n)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/filterMapEffect.ts",
        "start": {
          "line": 36,
          "column": 14
        },
        "end": {
          "line": 52,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/filterMapEffect.ts",
        "start": {
          "line": 37,
          "column": 3
        },
        "end": {
          "line": 39,
          "column": 62
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/filterMapEffect.ts",
        "start": {
          "line": 41,
          "column": 3
        },
        "end": {
          "line": 44,
          "column": 28
        }
      }
    ],
    "since": "1.0.0",
    "category": "Selecting values"
  }
}
