{
  "id": "@typed/fx#Push.filterEffect",
  "canonicalId": "@typed/fx/Push#filterEffect",
  "symbol": {
    "id": "@typed/fx#Push.filterEffect",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Push.filterEffect",
    "kind": "constant",
    "signatures": [
      "export declare const filterEffect: {\n    <B, R3, E3>(f: (b: B) => Effect.Effect<boolean, E3, R3>): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, B, E2 | E3, R2 | R3>;\n    <A, E, R, B, E2, R2, R3, E3>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => Effect.Effect<boolean, E3, R3>): Push<A, E, R, B, E2 | E3, R2 | R3>;\n};"
    ],
    "summary": "Effectfully decides which Fx output values are emitted.\n\nEach upstream value runs one predicate. `true` emits that value, `false` emits\nnone, and predicate failures join the output error channel. For a sequential\nsource the predicate is acknowledged before the next delivery, preserving\norder; the input side is unchanged.",
    "sections": {
      "Why": "Use this when an observed event needs an Effect service or fallible check before\nit is visible downstream.",
      "Ownership and lifetime": "Predicate effects run inside and are interrupted with the output subscription.\nTheir `E3` failures and `R3` services join the Fx channels. No separate queue or\npersistent fiber is introduced."
    },
    "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.fromIterable([1, 2]))\nconst positive = Push.filterEffect(push, (n) => Effect.succeed(n > 0))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Push/Push.ts",
      "line": 1108
    },
    "since": "1.0.0",
    "category": "Selecting outputs"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Push.filterEffect",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Push",
    "qualifiedName": "Push.filterEffect",
    "declarationKey": "declaration:6305cdc1722e22095c489400",
    "family": "variable",
    "signatures": [
      "export declare const filterEffect: {\n    <B, R3, E3>(f: (b: B) => Effect.Effect<boolean, E3, R3>): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, B, E2 | E3, R2 | R3>;\n    <A, E, R, B, E2, R2, R3, E3>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => Effect.Effect<boolean, E3, R3>): Push<A, E, R, B, E2 | E3, R2 | R3>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 1108,
          "column": 14
        },
        "end": {
          "line": 1134,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 1109,
          "column": 3
        },
        "end": {
          "line": 1111,
          "column": 94
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 1112,
          "column": 3
        },
        "end": {
          "line": 1115,
          "column": 41
        }
      }
    ],
    "aliases": [
      "@typed/fx/Push#filterEffect"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Push",
    "static": false,
    "importedFrom": "declaration:6305cdc1722e22095c489400"
  },
  "declaration": {
    "declarationKey": "declaration:6305cdc1722e22095c489400",
    "name": "filterEffect",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const filterEffect: {\n    <B, R3, E3>(f: (b: B) => Effect.Effect<boolean, E3, R3>): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, B, E2 | E3, R2 | R3>;\n    <A, E, R, B, E2, R2, R3, E3>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => Effect.Effect<boolean, E3, R3>): Push<A, E, R, B, E2 | E3, R2 | R3>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 1108,
              "column": 14
            },
            "end": {
              "line": 1134,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<B, R3, E3>(f: (b: B) => Effect.Effect<boolean, E3, R3>): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, B, E2 | E3, R2 | R3>;",
          "<A, E, R, B, E2, R2, R3, E3>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => Effect.Effect<boolean, E3, R3>): Push<A, E, R, B, E2 | E3, R2 | R3>;"
        ],
        "typeParameters": [
          "B",
          "R3",
          "E3",
          "A",
          "E",
          "R",
          "E2",
          "R2"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 1109,
              "column": 3
            },
            "end": {
              "line": 1111,
              "column": 94
            }
          },
          {
            "file": "packages/fx/src/Push/Push.ts",
            "start": {
              "line": 1112,
              "column": 3
            },
            "end": {
              "line": 1115,
              "column": 41
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const filterEffect: {\n    <B, R3, E3>(f: (b: B) => Effect.Effect<boolean, E3, R3>): <A, E, R, E2, R2>(push: Push<A, E, R, B, E2, R2>) => Push<A, E, R, B, E2 | E3, R2 | R3>;\n    <A, E, R, B, E2, R2, R3, E3>(push: Push<A, E, R, B, E2, R2>, f: (b: B) => Effect.Effect<boolean, E3, R3>): Push<A, E, R, B, E2 | E3, R2 | R3>;\n};"
    ],
    "typeParameters": [
      "B",
      "R3",
      "E3",
      "A",
      "E",
      "R",
      "E2",
      "R2"
    ],
    "summary": "Effectfully decides which Fx output values are emitted.\n\nEach upstream value runs one predicate. `true` emits that value, `false` emits\nnone, and predicate failures join the output error channel. For a sequential\nsource the predicate is acknowledged before the next delivery, preserving\norder; the input side is unchanged.",
    "sections": {
      "Why": "Use this when an observed event needs an Effect service or fallible check before\nit is visible downstream.",
      "Ownership and lifetime": "Predicate effects run inside and are interrupted with the output subscription.\nTheir `E3` failures and `R3` services join the Fx channels. No separate queue or\npersistent fiber is introduced."
    },
    "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.fromIterable([1, 2]))\nconst positive = Push.filterEffect(push, (n) => Effect.succeed(n > 0))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 1108,
          "column": 14
        },
        "end": {
          "line": 1134,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 1109,
          "column": 3
        },
        "end": {
          "line": 1111,
          "column": 94
        }
      },
      {
        "file": "packages/fx/src/Push/Push.ts",
        "start": {
          "line": 1112,
          "column": 3
        },
        "end": {
          "line": 1115,
          "column": 41
        }
      }
    ],
    "since": "1.0.0",
    "category": "Selecting outputs"
  }
}
