{
  "id": "@typed/router/Parser#Parser.TakeWhile",
  "canonicalId": "@typed/router/Parser#Parser.TakeWhile",
  "symbol": {
    "id": "@typed/router/Parser#Parser.TakeWhile",
    "packageName": "@typed/router",
    "moduleName": "Parser",
    "exportName": "Parser.TakeWhile",
    "kind": "interface",
    "signatures": [
      "interface TakeWhile<Allowed extends string> extends TypeFunction<string, Result<string, string>> {\n    readonly return: InputOf<this> extends infer Input extends string ? TakeWhileInternal<Input, Allowed> : never;\n}"
    ],
    "summary": "Consumes zero or more characters from an allowed union.",
    "sections": {
      "Why": "It preserves the precise consumed prefix and remaining suffix.",
      "Ownership and lifetime": "TypeScript instantiates `TakeWhile` 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 `TakeWhile.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": 404
    },
    "since": "1.0.0",
    "category": "Parser repetition"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router/Parser#Parser.TakeWhile",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "Parser",
    "consumerSpecifier": "@typed/router/Parser",
    "exportName": "Parser",
    "qualifiedName": "Parser.TakeWhile",
    "declarationKey": "declaration:46cd9726176b6baa5da5497e",
    "family": "interface",
    "signatures": [
      "interface TakeWhile<Allowed extends string> extends TypeFunction<string, Result<string, string>> {\n    readonly return: InputOf<this> extends infer Input extends string ? TakeWhileInternal<Input, Allowed> : never;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 404,
          "column": 3
        },
        "end": {
          "line": 424,
          "column": 4
        }
      },
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 421,
          "column": 5
        },
        "end": {
          "line": 423,
          "column": 15
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "parentId": "@typed/router/Parser#Parser",
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:46cd9726176b6baa5da5497e",
    "name": "TakeWhile",
    "family": "interface",
    "facets": [
      {
        "family": "interface",
        "syntaxKind": "InterfaceDeclaration",
        "signatures": [
          "interface TakeWhile<Allowed extends string> extends TypeFunction<string, Result<string, string>> {\n    readonly return: InputOf<this> extends infer Input extends string ? TakeWhileInternal<Input, Allowed> : never;\n}"
        ],
        "typeParameters": [
          "Allowed extends string"
        ],
        "sourceSpans": [
          {
            "file": "packages/router/src/Parser.ts",
            "start": {
              "line": 404,
              "column": 3
            },
            "end": {
              "line": 424,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly return: InputOf<this> extends infer Input extends string ? TakeWhileInternal<Input, Allowed> : never;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/Parser.ts",
            "start": {
              "line": 421,
              "column": 5
            },
            "end": {
              "line": 423,
              "column": 15
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "interface TakeWhile<Allowed extends string> extends TypeFunction<string, Result<string, string>> {\n    readonly return: InputOf<this> extends infer Input extends string ? TakeWhileInternal<Input, Allowed> : never;\n}"
    ],
    "typeParameters": [
      "Allowed extends string"
    ],
    "summary": "Consumes zero or more characters from an allowed union.",
    "sections": {
      "Why": "It preserves the precise consumed prefix and remaining suffix.",
      "Ownership and lifetime": "TypeScript instantiates `TakeWhile` 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 `TakeWhile.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": 404,
          "column": 3
        },
        "end": {
          "line": 424,
          "column": 4
        }
      },
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 421,
          "column": 5
        },
        "end": {
          "line": 423,
          "column": 15
        }
      }
    ],
    "since": "1.0.0",
    "category": "Parser repetition"
  }
}
