{
  "id": "@typed/router/Parser#Parser.MapTo",
  "canonicalId": "@typed/router/Parser#Parser.MapTo",
  "symbol": {
    "id": "@typed/router/Parser#Parser.MapTo",
    "packageName": "@typed/router",
    "moduleName": "Parser",
    "exportName": "Parser.MapTo",
    "kind": "interface",
    "signatures": [
      "interface MapTo<F extends TypeFunction> extends TypeFunction {\n    readonly return: InputOf<this> extends infer P extends Any ? Map<P, F> : never;\n}"
    ],
    "summary": "Binds a Parser and mapping lambda for reuse as a type lambda.",
    "sections": {
      "Why": "Higher-order grammar can receive a preconfigured mapping operation.",
      "Ownership and lifetime": "TypeScript instantiates `MapTo` 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 `MapTo.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": 795
    },
    "since": "1.0.0",
    "category": "Parser composition"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router/Parser#Parser.MapTo",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "Parser",
    "consumerSpecifier": "@typed/router/Parser",
    "exportName": "Parser",
    "qualifiedName": "Parser.MapTo",
    "declarationKey": "declaration:9103c56c7d246a74c743e4f4",
    "family": "interface",
    "signatures": [
      "interface MapTo<F extends TypeFunction> extends TypeFunction {\n    readonly return: InputOf<this> extends infer P extends Any ? Map<P, F> : never;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 795,
          "column": 3
        },
        "end": {
          "line": 810,
          "column": 4
        }
      },
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 809,
          "column": 5
        },
        "end": {
          "line": 809,
          "column": 84
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "parentId": "@typed/router/Parser#Parser",
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:9103c56c7d246a74c743e4f4",
    "name": "MapTo",
    "family": "interface",
    "facets": [
      {
        "family": "interface",
        "syntaxKind": "InterfaceDeclaration",
        "signatures": [
          "interface MapTo<F extends TypeFunction> extends TypeFunction {\n    readonly return: InputOf<this> extends infer P extends Any ? Map<P, F> : never;\n}"
        ],
        "typeParameters": [
          "F extends TypeFunction"
        ],
        "sourceSpans": [
          {
            "file": "packages/router/src/Parser.ts",
            "start": {
              "line": 795,
              "column": 3
            },
            "end": {
              "line": 810,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly return: InputOf<this> extends infer P extends Any ? Map<P, F> : never;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/Parser.ts",
            "start": {
              "line": 809,
              "column": 5
            },
            "end": {
              "line": 809,
              "column": 84
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "interface MapTo<F extends TypeFunction> extends TypeFunction {\n    readonly return: InputOf<this> extends infer P extends Any ? Map<P, F> : never;\n}"
    ],
    "typeParameters": [
      "F extends TypeFunction"
    ],
    "summary": "Binds a Parser and mapping lambda for reuse as a type lambda.",
    "sections": {
      "Why": "Higher-order grammar can receive a preconfigured mapping operation.",
      "Ownership and lifetime": "TypeScript instantiates `MapTo` 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 `MapTo.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": 795,
          "column": 3
        },
        "end": {
          "line": 810,
          "column": 4
        }
      },
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 809,
          "column": 5
        },
        "end": {
          "line": 809,
          "column": 84
        }
      }
    ],
    "since": "1.0.0",
    "category": "Parser composition"
  }
}
