{
  "id": "@typed/router/Matcher#catchTag",
  "canonicalId": "@typed/router#catchTag",
  "symbol": {
    "id": "@typed/router/Matcher#catchTag",
    "packageName": "@typed/router",
    "moduleName": "Matcher",
    "exportName": "catchTag",
    "kind": "constant",
    "signatures": [
      "export declare const catchTag: {\n    <I extends Fx.Fx.Any | Matcher.Any, const K extends Tags<InputError<I>> | Arr.NonEmptyReadonlyArray<Tags<InputError<I>>>, B, E2, R2>(k: K, f: (e: ExtractTag<NoInfer<InputError<I>>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Fx.Fx<B, E2, R2>): (input: I) => Fx.Fx<InputSucces<I> | B, E2 | ExcludeTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>, InputServices<I> | R2 | Router | Scope.Scope>;\n    <I extends Fx.Fx.Any | Matcher.Any, const K extends Tags<InputError<I>> | Arr.NonEmptyReadonlyArray<Tags<InputError<I>>>, B, E2, R2>(input: I, k: K, f: (e: ExtractTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Fx.Fx<B, E2, R2>): Fx.Fx<InputSucces<I> | B, E2 | ExcludeTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>, InputServices<I> | R2 | Router | Scope.Scope>;\n};"
    ],
    "summary": "Handles selected tagged failures and preserves unmatched variants.",
    "sections": {
      "Why": "Recovery narrows the error union instead of erasing it.",
      "Ownership and lifetime": "Calling the combinator constructs an Fx. A matching fallback runs in the consumer Scope; unmatched causes are forwarded unchanged.",
      "Call signatures": "Creates a data-first or data-last recovery Fx for selected error tags.",
      "Call signatures: Why": "Matching tags are removed from the resulting error union while unmatched tags and complete\nnon-failure causes remain visible.",
      "Call signatures: Ownership and lifetime": "Calling this signature only constructs an Fx. A matching fallback is subscribed in the consumer\nScope; unmatched causes reuse the original cause without acquiring fallback work."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/router/src/Matcher.ts",
      "line": 1662
    },
    "since": "1.0.0",
    "category": "Route recovery"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router/Matcher#catchTag",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "Matcher",
    "consumerSpecifier": "@typed/router/Matcher",
    "exportName": "catchTag",
    "qualifiedName": "catchTag",
    "declarationKey": "declaration:cd93fc324c6a30021f687d57",
    "family": "variable",
    "signatures": [
      "export declare const catchTag: {\n    <I extends Fx.Fx.Any | Matcher.Any, const K extends Tags<InputError<I>> | Arr.NonEmptyReadonlyArray<Tags<InputError<I>>>, B, E2, R2>(k: K, f: (e: ExtractTag<NoInfer<InputError<I>>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Fx.Fx<B, E2, R2>): (input: I) => Fx.Fx<InputSucces<I> | B, E2 | ExcludeTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>, InputServices<I> | R2 | Router | Scope.Scope>;\n    <I extends Fx.Fx.Any | Matcher.Any, const K extends Tags<InputError<I>> | Arr.NonEmptyReadonlyArray<Tags<InputError<I>>>, B, E2, R2>(input: I, k: K, f: (e: ExtractTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Fx.Fx<B, E2, R2>): Fx.Fx<InputSucces<I> | B, E2 | ExcludeTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>, InputServices<I> | R2 | Router | Scope.Scope>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 1662,
          "column": 14
        },
        "end": {
          "line": 1768,
          "column": 2
        }
      },
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 1678,
          "column": 3
        },
        "end": {
          "line": 1698,
          "column": 5
        }
      },
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 1700,
          "column": 3
        },
        "end": {
          "line": 1716,
          "column": 5
        }
      }
    ],
    "aliases": [
      "@typed/router#catchTag"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:cd93fc324c6a30021f687d57",
    "name": "catchTag",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const catchTag: {\n    <I extends Fx.Fx.Any | Matcher.Any, const K extends Tags<InputError<I>> | Arr.NonEmptyReadonlyArray<Tags<InputError<I>>>, B, E2, R2>(k: K, f: (e: ExtractTag<NoInfer<InputError<I>>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Fx.Fx<B, E2, R2>): (input: I) => Fx.Fx<InputSucces<I> | B, E2 | ExcludeTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>, InputServices<I> | R2 | Router | Scope.Scope>;\n    <I extends Fx.Fx.Any | Matcher.Any, const K extends Tags<InputError<I>> | Arr.NonEmptyReadonlyArray<Tags<InputError<I>>>, B, E2, R2>(input: I, k: K, f: (e: ExtractTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Fx.Fx<B, E2, R2>): Fx.Fx<InputSucces<I> | B, E2 | ExcludeTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>, InputServices<I> | R2 | Router | Scope.Scope>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/Matcher.ts",
            "start": {
              "line": 1662,
              "column": 14
            },
            "end": {
              "line": 1768,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<I extends Fx.Fx.Any | Matcher.Any, const K extends Tags<InputError<I>> | Arr.NonEmptyReadonlyArray<Tags<InputError<I>>>, B, E2, R2>(k: K, f: (e: ExtractTag<NoInfer<InputError<I>>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Fx.Fx<B, E2, R2>): (input: I) => Fx.Fx<InputSucces<I> | B, E2 | ExcludeTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>, InputServices<I> | R2 | Router | Scope.Scope>;",
          "<I extends Fx.Fx.Any | Matcher.Any, const K extends Tags<InputError<I>> | Arr.NonEmptyReadonlyArray<Tags<InputError<I>>>, B, E2, R2>(input: I, k: K, f: (e: ExtractTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Fx.Fx<B, E2, R2>): Fx.Fx<InputSucces<I> | B, E2 | ExcludeTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>, InputServices<I> | R2 | Router | Scope.Scope>;"
        ],
        "typeParameters": [
          "I extends Fx.Fx.Any | Matcher.Any",
          "const K extends Tags<InputError<I>> | Arr.NonEmptyReadonlyArray<Tags<InputError<I>>>",
          "B",
          "E2",
          "R2"
        ],
        "sourceSpans": [
          {
            "file": "packages/router/src/Matcher.ts",
            "start": {
              "line": 1678,
              "column": 3
            },
            "end": {
              "line": 1698,
              "column": 5
            }
          },
          {
            "file": "packages/router/src/Matcher.ts",
            "start": {
              "line": 1700,
              "column": 3
            },
            "end": {
              "line": 1716,
              "column": 5
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const catchTag: {\n    <I extends Fx.Fx.Any | Matcher.Any, const K extends Tags<InputError<I>> | Arr.NonEmptyReadonlyArray<Tags<InputError<I>>>, B, E2, R2>(k: K, f: (e: ExtractTag<NoInfer<InputError<I>>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Fx.Fx<B, E2, R2>): (input: I) => Fx.Fx<InputSucces<I> | B, E2 | ExcludeTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>, InputServices<I> | R2 | Router | Scope.Scope>;\n    <I extends Fx.Fx.Any | Matcher.Any, const K extends Tags<InputError<I>> | Arr.NonEmptyReadonlyArray<Tags<InputError<I>>>, B, E2, R2>(input: I, k: K, f: (e: ExtractTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Fx.Fx<B, E2, R2>): Fx.Fx<InputSucces<I> | B, E2 | ExcludeTag<InputError<I>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>, InputServices<I> | R2 | Router | Scope.Scope>;\n};"
    ],
    "typeParameters": [
      "I extends Fx.Fx.Any | Matcher.Any",
      "const K extends Tags<InputError<I>> | Arr.NonEmptyReadonlyArray<Tags<InputError<I>>>",
      "B",
      "E2",
      "R2"
    ],
    "summary": "Handles selected tagged failures and preserves unmatched variants.",
    "sections": {
      "Why": "Recovery narrows the error union instead of erasing it.",
      "Ownership and lifetime": "Calling the combinator constructs an Fx. A matching fallback runs in the consumer Scope; unmatched causes are forwarded unchanged.",
      "Call signatures": "Creates a data-first or data-last recovery Fx for selected error tags.",
      "Call signatures: Why": "Matching tags are removed from the resulting error union while unmatched tags and complete\nnon-failure causes remain visible.",
      "Call signatures: Ownership and lifetime": "Calling this signature only constructs an Fx. A matching fallback is subscribed in the consumer\nScope; unmatched causes reuse the original cause without acquiring fallback work."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 1662,
          "column": 14
        },
        "end": {
          "line": 1768,
          "column": 2
        }
      },
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 1678,
          "column": 3
        },
        "end": {
          "line": 1698,
          "column": 5
        }
      },
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 1700,
          "column": 3
        },
        "end": {
          "line": 1716,
          "column": 5
        }
      }
    ],
    "since": "1.0.0",
    "category": "Route recovery"
  }
}
