{
  "id": "@typed/router/Matcher#catchCause",
  "canonicalId": "@typed/router#catchCause",
  "symbol": {
    "id": "@typed/router/Matcher#catchCause",
    "packageName": "@typed/router",
    "moduleName": "Matcher",
    "exportName": "catchCause",
    "kind": "constant",
    "signatures": [
      "export declare const catchCause: {\n    <I extends Fx.Fx.Any | Matcher.Any, B, E2 = never, R2 = never>(f: (cause: RefSubject.RefSubject<Cause.Cause<InputError<I> | RouteNotFound | RouteDecodeError | RouteGuardError>>) => Fx.Fx<B, E2, R2>): (input: I) => Fx.Fx<InputSucces<I> | B, E2, InputServices<I> | R2 | Router | Scope.Scope>;\n    <I extends Fx.Fx.Any | Matcher.Any, B, E2 = never, R2 = never>(input: I, f: (cause: RefSubject.RefSubject<Cause.Cause<InputError<I> | RouteNotFound | RouteDecodeError | RouteGuardError>>) => Fx.Fx<B, E2, R2>): Fx.Fx<InputSucces<I> | B, E2, InputServices<I> | R2 | Router | Scope.Scope>;\n};"
    ],
    "summary": "Handles complete causes from an Fx or Matcher with a reactive Cause RefSubject.",
    "sections": {
      "Why": "Defects and interruption stay distinguishable from typed failures.",
      "Ownership and lifetime": "Calling the combinator constructs an Fx. Running it creates a catch manager in the consumer Scope; that Scope owns the cause RefSubject and fallback subscriptions.",
      "Call signatures": "Creates a data-first or data-last complete-cause recovery Fx.",
      "Call signatures: Why": "Both call forms preserve the input's success and service types while exposing failure, defect,\nand interruption through one reactive Cause RefSubject.",
      "Call signatures: Ownership and lifetime": "Calling this signature only constructs an Fx. Its consumer Scope owns the catch manager, cause\nRefSubject, input subscription, and fallback subscription."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/router/src/Matcher.ts",
      "line": 1537
    },
    "since": "1.0.0",
    "category": "Route recovery"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router/Matcher#catchCause",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "Matcher",
    "consumerSpecifier": "@typed/router/Matcher",
    "exportName": "catchCause",
    "qualifiedName": "catchCause",
    "declarationKey": "declaration:461eb844465e6e8d7584cc2a",
    "family": "variable",
    "signatures": [
      "export declare const catchCause: {\n    <I extends Fx.Fx.Any | Matcher.Any, B, E2 = never, R2 = never>(f: (cause: RefSubject.RefSubject<Cause.Cause<InputError<I> | RouteNotFound | RouteDecodeError | RouteGuardError>>) => Fx.Fx<B, E2, R2>): (input: I) => Fx.Fx<InputSucces<I> | B, E2, InputServices<I> | R2 | Router | Scope.Scope>;\n    <I extends Fx.Fx.Any | Matcher.Any, B, E2 = never, R2 = never>(input: I, f: (cause: RefSubject.RefSubject<Cause.Cause<InputError<I> | RouteNotFound | RouteDecodeError | RouteGuardError>>) => Fx.Fx<B, E2, R2>): Fx.Fx<InputSucces<I> | B, E2, InputServices<I> | R2 | Router | Scope.Scope>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 1537,
          "column": 14
        },
        "end": {
          "line": 1588,
          "column": 2
        }
      },
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 1553,
          "column": 3
        },
        "end": {
          "line": 1559,
          "column": 96
        }
      },
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 1561,
          "column": 3
        },
        "end": {
          "line": 1568,
          "column": 82
        }
      }
    ],
    "aliases": [
      "@typed/router#catchCause"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:461eb844465e6e8d7584cc2a",
    "name": "catchCause",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const catchCause: {\n    <I extends Fx.Fx.Any | Matcher.Any, B, E2 = never, R2 = never>(f: (cause: RefSubject.RefSubject<Cause.Cause<InputError<I> | RouteNotFound | RouteDecodeError | RouteGuardError>>) => Fx.Fx<B, E2, R2>): (input: I) => Fx.Fx<InputSucces<I> | B, E2, InputServices<I> | R2 | Router | Scope.Scope>;\n    <I extends Fx.Fx.Any | Matcher.Any, B, E2 = never, R2 = never>(input: I, f: (cause: RefSubject.RefSubject<Cause.Cause<InputError<I> | RouteNotFound | RouteDecodeError | RouteGuardError>>) => Fx.Fx<B, E2, R2>): Fx.Fx<InputSucces<I> | B, E2, InputServices<I> | R2 | Router | Scope.Scope>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/Matcher.ts",
            "start": {
              "line": 1537,
              "column": 14
            },
            "end": {
              "line": 1588,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<I extends Fx.Fx.Any | Matcher.Any, B, E2 = never, R2 = never>(f: (cause: RefSubject.RefSubject<Cause.Cause<InputError<I> | RouteNotFound | RouteDecodeError | RouteGuardError>>) => Fx.Fx<B, E2, R2>): (input: I) => Fx.Fx<InputSucces<I> | B, E2, InputServices<I> | R2 | Router | Scope.Scope>;",
          "<I extends Fx.Fx.Any | Matcher.Any, B, E2 = never, R2 = never>(input: I, f: (cause: RefSubject.RefSubject<Cause.Cause<InputError<I> | RouteNotFound | RouteDecodeError | RouteGuardError>>) => Fx.Fx<B, E2, R2>): Fx.Fx<InputSucces<I> | B, E2, InputServices<I> | R2 | Router | Scope.Scope>;"
        ],
        "typeParameters": [
          "I extends Fx.Fx.Any | Matcher.Any",
          "B",
          "E2 = never",
          "R2 = never"
        ],
        "sourceSpans": [
          {
            "file": "packages/router/src/Matcher.ts",
            "start": {
              "line": 1553,
              "column": 3
            },
            "end": {
              "line": 1559,
              "column": 96
            }
          },
          {
            "file": "packages/router/src/Matcher.ts",
            "start": {
              "line": 1561,
              "column": 3
            },
            "end": {
              "line": 1568,
              "column": 82
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const catchCause: {\n    <I extends Fx.Fx.Any | Matcher.Any, B, E2 = never, R2 = never>(f: (cause: RefSubject.RefSubject<Cause.Cause<InputError<I> | RouteNotFound | RouteDecodeError | RouteGuardError>>) => Fx.Fx<B, E2, R2>): (input: I) => Fx.Fx<InputSucces<I> | B, E2, InputServices<I> | R2 | Router | Scope.Scope>;\n    <I extends Fx.Fx.Any | Matcher.Any, B, E2 = never, R2 = never>(input: I, f: (cause: RefSubject.RefSubject<Cause.Cause<InputError<I> | RouteNotFound | RouteDecodeError | RouteGuardError>>) => Fx.Fx<B, E2, R2>): Fx.Fx<InputSucces<I> | B, E2, InputServices<I> | R2 | Router | Scope.Scope>;\n};"
    ],
    "typeParameters": [
      "I extends Fx.Fx.Any | Matcher.Any",
      "B",
      "E2 = never",
      "R2 = never"
    ],
    "summary": "Handles complete causes from an Fx or Matcher with a reactive Cause RefSubject.",
    "sections": {
      "Why": "Defects and interruption stay distinguishable from typed failures.",
      "Ownership and lifetime": "Calling the combinator constructs an Fx. Running it creates a catch manager in the consumer Scope; that Scope owns the cause RefSubject and fallback subscriptions.",
      "Call signatures": "Creates a data-first or data-last complete-cause recovery Fx.",
      "Call signatures: Why": "Both call forms preserve the input's success and service types while exposing failure, defect,\nand interruption through one reactive Cause RefSubject.",
      "Call signatures: Ownership and lifetime": "Calling this signature only constructs an Fx. Its consumer Scope owns the catch manager, cause\nRefSubject, input subscription, and fallback subscription."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 1537,
          "column": 14
        },
        "end": {
          "line": 1588,
          "column": 2
        }
      },
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 1553,
          "column": 3
        },
        "end": {
          "line": 1559,
          "column": 96
        }
      },
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 1561,
          "column": 3
        },
        "end": {
          "line": 1568,
          "column": 82
        }
      }
    ],
    "since": "1.0.0",
    "category": "Route recovery"
  }
}
