{
  "id": "@typed/router/Parser#Parser.OrElse",
  "canonicalId": "@typed/router/Parser#Parser.OrElse",
  "symbol": {
    "id": "@typed/router/Parser#Parser.OrElse",
    "packageName": "@typed/router",
    "moduleName": "Parser",
    "exportName": "Parser.OrElse",
    "kind": "interface",
    "signatures": [
      "interface OrElse<P extends Any, Q extends Any> extends Parser<unknown> {\n    readonly return: InputOf<this> extends infer Input extends string ? Apply<P, Input> extends infer R ? [\n        R\n    ] extends [\n        never\n    ] ? Pipe<Input, Q> : R extends readonly [\n        infer Value,\n        infer Rest extends string\n    ] ? readonly [\n        Value,\n        Rest\n    ] : never : never : never;\n}"
    ],
    "summary": "Runs the fallback parser from the original input when the first parser fails.",
    "sections": {
      "Why": "Alternatives do not leak partial consumption from a rejected branch.",
      "Ownership and lifetime": "TypeScript instantiates `OrElse` while parsing a string-literal input; partial results and unconsumed text exist only in the resulting type.",
      "Property: return": "Computes this type lambda's parse result for its current input.",
      "Property: return: Why": "The local type-function protocol evaluates each parser combinator through this member without a parallel runtime object.",
      "Property: return: Ownership and lifetime": "TypeScript evaluates `OrElse.return` when the surrounding parser is applied; the associated result is erased and retains no input at runtime."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/router/src/Parser.ts",
      "line": 600
    },
    "since": "1.0.0",
    "category": "Parser composition"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router/Parser#Parser.OrElse",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "Parser",
    "consumerSpecifier": "@typed/router/Parser",
    "exportName": "Parser",
    "qualifiedName": "Parser.OrElse",
    "declarationKey": "declaration:9d93101f7b210f60244eea40",
    "family": "interface",
    "signatures": [
      "interface OrElse<P extends Any, Q extends Any> extends Parser<unknown> {\n    readonly return: InputOf<this> extends infer Input extends string ? Apply<P, Input> extends infer R ? [\n        R\n    ] extends [\n        never\n    ] ? Pipe<Input, Q> : R extends readonly [\n        infer Value,\n        infer Rest extends string\n    ] ? readonly [\n        Value,\n        Rest\n    ] : never : never : never;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 600,
          "column": 3
        },
        "end": {
          "line": 623,
          "column": 4
        }
      },
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 614,
          "column": 5
        },
        "end": {
          "line": 622,
          "column": 15
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "parentId": "@typed/router/Parser#Parser",
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:9d93101f7b210f60244eea40",
    "name": "OrElse",
    "family": "interface",
    "facets": [
      {
        "family": "interface",
        "syntaxKind": "InterfaceDeclaration",
        "signatures": [
          "interface OrElse<P extends Any, Q extends Any> extends Parser<unknown> {\n    readonly return: InputOf<this> extends infer Input extends string ? Apply<P, Input> extends infer R ? [\n        R\n    ] extends [\n        never\n    ] ? Pipe<Input, Q> : R extends readonly [\n        infer Value,\n        infer Rest extends string\n    ] ? readonly [\n        Value,\n        Rest\n    ] : never : never : never;\n}"
        ],
        "typeParameters": [
          "P extends Any",
          "Q extends Any"
        ],
        "sourceSpans": [
          {
            "file": "packages/router/src/Parser.ts",
            "start": {
              "line": 600,
              "column": 3
            },
            "end": {
              "line": 623,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly return: InputOf<this> extends infer Input extends string ? Apply<P, Input> extends infer R ? [\n    R\n] extends [\n    never\n] ? Pipe<Input, Q> : R extends readonly [\n    infer Value,\n    infer Rest extends string\n] ? readonly [\n    Value,\n    Rest\n] : never : never : never;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/Parser.ts",
            "start": {
              "line": 614,
              "column": 5
            },
            "end": {
              "line": 622,
              "column": 15
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "interface OrElse<P extends Any, Q extends Any> extends Parser<unknown> {\n    readonly return: InputOf<this> extends infer Input extends string ? Apply<P, Input> extends infer R ? [\n        R\n    ] extends [\n        never\n    ] ? Pipe<Input, Q> : R extends readonly [\n        infer Value,\n        infer Rest extends string\n    ] ? readonly [\n        Value,\n        Rest\n    ] : never : never : never;\n}"
    ],
    "typeParameters": [
      "P extends Any",
      "Q extends Any"
    ],
    "summary": "Runs the fallback parser from the original input when the first parser fails.",
    "sections": {
      "Why": "Alternatives do not leak partial consumption from a rejected branch.",
      "Ownership and lifetime": "TypeScript instantiates `OrElse` while parsing a string-literal input; partial results and unconsumed text exist only in the resulting type.",
      "Property: return": "Computes this type lambda's parse result for its current input.",
      "Property: return: Why": "The local type-function protocol evaluates each parser combinator through this member without a parallel runtime object.",
      "Property: return: Ownership and lifetime": "TypeScript evaluates `OrElse.return` when the surrounding parser is applied; the associated result is erased and retains no input at runtime."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 600,
          "column": 3
        },
        "end": {
          "line": 623,
          "column": 4
        }
      },
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 614,
          "column": 5
        },
        "end": {
          "line": 622,
          "column": 15
        }
      }
    ],
    "since": "1.0.0",
    "category": "Parser composition"
  }
}
