{
  "id": "@typed/guard#filterMap",
  "canonicalId": "@typed/guard#filterMap",
  "symbol": {
    "id": "@typed/guard#filterMap",
    "packageName": "@typed/guard",
    "moduleName": ".",
    "exportName": "filterMap",
    "kind": "constant",
    "signatures": [
      "export declare const filterMap: {\n    <O, B>(f: (o: O) => Option.Option<B>): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E, R>;\n    <I, O, E, R, B>(guard: GuardInput<I, O, E, R>, f: (o: O) => Option.Option<B>): Guard<I, B, E, R>;\n};"
    ],
    "summary": "Refines and maps a matched value with an Option-returning function.",
    "sections": {
      "Why": "`Option.none` provides a second ordinary non-match stage without introducing typed failure.",
      "Ownership and lifetime": "This combinator acquires no resources; the callback runs only for source matches."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { filterMap, liftPredicate } from \"@typed/guard\"\nimport { Option } from \"effect\"\nconst parsed = filterMap(liftPredicate((u: unknown): u is string => typeof u === \"string\"), (s) => s ? Option.some(Number(s)) : Option.none())"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/guard/src/index.ts",
      "line": 435
    },
    "since": "1.0.0",
    "category": "Input selection"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/guard#filterMap",
    "packageName": "@typed/guard",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/guard",
    "exportName": "filterMap",
    "qualifiedName": "filterMap",
    "declarationKey": "declaration:f04dbd9a52cadcb361818b46",
    "family": "variable",
    "signatures": [
      "export declare const filterMap: {\n    <O, B>(f: (o: O) => Option.Option<B>): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E, R>;\n    <I, O, E, R, B>(guard: GuardInput<I, O, E, R>, f: (o: O) => Option.Option<B>): Guard<I, B, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 435,
          "column": 14
        },
        "end": {
          "line": 449,
          "column": 2
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 436,
          "column": 3
        },
        "end": {
          "line": 438,
          "column": 68
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 439,
          "column": 3
        },
        "end": {
          "line": 439,
          "column": 100
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:f04dbd9a52cadcb361818b46",
    "name": "filterMap",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const filterMap: {\n    <O, B>(f: (o: O) => Option.Option<B>): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E, R>;\n    <I, O, E, R, B>(guard: GuardInput<I, O, E, R>, f: (o: O) => Option.Option<B>): Guard<I, B, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 435,
              "column": 14
            },
            "end": {
              "line": 449,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<O, B>(f: (o: O) => Option.Option<B>): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E, R>;",
          "<I, O, E, R, B>(guard: GuardInput<I, O, E, R>, f: (o: O) => Option.Option<B>): Guard<I, B, E, R>;"
        ],
        "typeParameters": [
          "O",
          "B",
          "I",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 436,
              "column": 3
            },
            "end": {
              "line": 438,
              "column": 68
            }
          },
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 439,
              "column": 3
            },
            "end": {
              "line": 439,
              "column": 100
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const filterMap: {\n    <O, B>(f: (o: O) => Option.Option<B>): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E, R>;\n    <I, O, E, R, B>(guard: GuardInput<I, O, E, R>, f: (o: O) => Option.Option<B>): Guard<I, B, E, R>;\n};"
    ],
    "typeParameters": [
      "O",
      "B",
      "I",
      "E",
      "R"
    ],
    "summary": "Refines and maps a matched value with an Option-returning function.",
    "sections": {
      "Why": "`Option.none` provides a second ordinary non-match stage without introducing typed failure.",
      "Ownership and lifetime": "This combinator acquires no resources; the callback runs only for source matches."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { filterMap, liftPredicate } from \"@typed/guard\"\nimport { Option } from \"effect\"\nconst parsed = filterMap(liftPredicate((u: unknown): u is string => typeof u === \"string\"), (s) => s ? Option.some(Number(s)) : Option.none())"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 435,
          "column": 14
        },
        "end": {
          "line": 449,
          "column": 2
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 436,
          "column": 3
        },
        "end": {
          "line": 438,
          "column": 68
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 439,
          "column": 3
        },
        "end": {
          "line": 439,
          "column": 100
        }
      }
    ],
    "since": "1.0.0",
    "category": "Input selection"
  }
}
