{
  "id": "@typed/fx/Versioned#filterMap",
  "canonicalId": "@typed/fx/Versioned#filterMap",
  "symbol": {
    "id": "@typed/fx/Versioned#filterMap",
    "packageName": "@typed/fx",
    "moduleName": "Versioned",
    "exportName": "filterMap",
    "kind": "constant",
    "signatures": [
      "export declare const filterMap: {\n    <A, E, R, C, B, D>(options: {\n        onFx: (a: A) => Option.Option<C>;\n        onEffect: (b: B) => Option.Option<D>;\n    }): <R0, E0, R2, E2>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>) => Versioned<never, never, C, E, R, Option.Option<D>, E0 | E2, R0 | R2>;\n    <R0, E0, A, E, R, B, E2, R2, C, D>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>, options: {\n        onFx: (a: A) => Option.Option<C>;\n        onEffect: (b: B) => Option.Option<D>;\n    }): Versioned<never, never, C, E, R, Option.Option<D>, E0 | E2, R0 | R2>;\n};"
    ],
    "summary": "Filter-maps a Versioned's output as both an Fx and Effect; the Effect value becomes `Option` (Some when the predicate holds, None otherwise).",
    "sections": {
      "Why": "Drops absent pushed values while preserving an Option for the current read, making the two\nabsence semantics explicit.",
      "Ownership and lifetime": "filterMap does not take ownership of its inputs. Its observation and current-read channels\nretain upstream lifetime, typed failures, services, and interruption behavior."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Versioned/Versioned.ts",
      "line": 630
    },
    "since": "1.18.0",
    "category": "Optional channel transformations"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Versioned#filterMap",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "Versioned",
    "consumerSpecifier": "@typed/fx/Versioned",
    "exportName": "filterMap",
    "qualifiedName": "filterMap",
    "declarationKey": "declaration:2f0ea39211f2bb9664a38d08",
    "family": "variable",
    "signatures": [
      "export declare const filterMap: {\n    <A, E, R, C, B, D>(options: {\n        onFx: (a: A) => Option.Option<C>;\n        onEffect: (b: B) => Option.Option<D>;\n    }): <R0, E0, R2, E2>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>) => Versioned<never, never, C, E, R, Option.Option<D>, E0 | E2, R0 | R2>;\n    <R0, E0, A, E, R, B, E2, R2, C, D>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>, options: {\n        onFx: (a: A) => Option.Option<C>;\n        onEffect: (b: B) => Option.Option<D>;\n    }): Versioned<never, never, C, E, R, Option.Option<D>, E0 | E2, R0 | R2>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 630,
          "column": 14
        },
        "end": {
          "line": 660,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 631,
          "column": 3
        },
        "end": {
          "line": 636,
          "column": 77
        }
      },
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 638,
          "column": 3
        },
        "end": {
          "line": 644,
          "column": 75
        }
      }
    ],
    "aliases": [
      "@typed/fx#Versioned.filterMap"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:2f0ea39211f2bb9664a38d08",
    "name": "filterMap",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const filterMap: {\n    <A, E, R, C, B, D>(options: {\n        onFx: (a: A) => Option.Option<C>;\n        onEffect: (b: B) => Option.Option<D>;\n    }): <R0, E0, R2, E2>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>) => Versioned<never, never, C, E, R, Option.Option<D>, E0 | E2, R0 | R2>;\n    <R0, E0, A, E, R, B, E2, R2, C, D>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>, options: {\n        onFx: (a: A) => Option.Option<C>;\n        onEffect: (b: B) => Option.Option<D>;\n    }): Versioned<never, never, C, E, R, Option.Option<D>, E0 | E2, R0 | R2>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Versioned/Versioned.ts",
            "start": {
              "line": 630,
              "column": 14
            },
            "end": {
              "line": 660,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A, E, R, C, B, D>(options: {\n    onFx: (a: A) => Option.Option<C>;\n    onEffect: (b: B) => Option.Option<D>;\n}): <R0, E0, R2, E2>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>) => Versioned<never, never, C, E, R, Option.Option<D>, E0 | E2, R0 | R2>;",
          "<R0, E0, A, E, R, B, E2, R2, C, D>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>, options: {\n    onFx: (a: A) => Option.Option<C>;\n    onEffect: (b: B) => Option.Option<D>;\n}): Versioned<never, never, C, E, R, Option.Option<D>, E0 | E2, R0 | R2>;"
        ],
        "typeParameters": [
          "A",
          "E",
          "R",
          "C",
          "B",
          "D",
          "R0",
          "E0",
          "E2",
          "R2"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Versioned/Versioned.ts",
            "start": {
              "line": 631,
              "column": 3
            },
            "end": {
              "line": 636,
              "column": 77
            }
          },
          {
            "file": "packages/fx/src/Versioned/Versioned.ts",
            "start": {
              "line": 638,
              "column": 3
            },
            "end": {
              "line": 644,
              "column": 75
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const filterMap: {\n    <A, E, R, C, B, D>(options: {\n        onFx: (a: A) => Option.Option<C>;\n        onEffect: (b: B) => Option.Option<D>;\n    }): <R0, E0, R2, E2>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>) => Versioned<never, never, C, E, R, Option.Option<D>, E0 | E2, R0 | R2>;\n    <R0, E0, A, E, R, B, E2, R2, C, D>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>, options: {\n        onFx: (a: A) => Option.Option<C>;\n        onEffect: (b: B) => Option.Option<D>;\n    }): Versioned<never, never, C, E, R, Option.Option<D>, E0 | E2, R0 | R2>;\n};"
    ],
    "typeParameters": [
      "A",
      "E",
      "R",
      "C",
      "B",
      "D",
      "R0",
      "E0",
      "E2",
      "R2"
    ],
    "summary": "Filter-maps a Versioned's output as both an Fx and Effect; the Effect value becomes `Option` (Some when the predicate holds, None otherwise).",
    "sections": {
      "Why": "Drops absent pushed values while preserving an Option for the current read, making the two\nabsence semantics explicit.",
      "Ownership and lifetime": "filterMap does not take ownership of its inputs. Its observation and current-read channels\nretain upstream lifetime, typed failures, services, and interruption behavior."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 630,
          "column": 14
        },
        "end": {
          "line": 660,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 631,
          "column": 3
        },
        "end": {
          "line": 636,
          "column": 77
        }
      },
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 638,
          "column": 3
        },
        "end": {
          "line": 644,
          "column": 75
        }
      }
    ],
    "since": "1.18.0",
    "category": "Optional channel transformations"
  }
}
