{
  "id": "@typed/router/Parser#Parser.TakeWhile1",
  "canonicalId": "@typed/router/Parser#Parser.TakeWhile1",
  "symbol": {
    "id": "@typed/router/Parser#Parser.TakeWhile1",
    "packageName": "@typed/router",
    "moduleName": "Parser",
    "exportName": "Parser.TakeWhile1",
    "kind": "interface",
    "signatures": [
      "interface TakeWhile1<Allowed extends string> extends TypeFunction<string, Result<string, string>> {\n    readonly return: InputOf<this> extends infer Input extends string ? TakeWhile1Internal<Input, Allowed> : never;\n}"
    ],
    "summary": "Consumes one or more allowed characters and fails on an empty prefix.",
    "sections": {
      "Why": "Required route names cannot silently parse as empty strings.",
      "Ownership and lifetime": "TypeScript instantiates `TakeWhile1` 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 `TakeWhile1.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": 439
    },
    "since": "1.0.0",
    "category": "Parser repetition"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router/Parser#Parser.TakeWhile1",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "Parser",
    "consumerSpecifier": "@typed/router/Parser",
    "exportName": "Parser",
    "qualifiedName": "Parser.TakeWhile1",
    "declarationKey": "declaration:cbc1e371deb5256028672a1e",
    "family": "interface",
    "signatures": [
      "interface TakeWhile1<Allowed extends string> extends TypeFunction<string, Result<string, string>> {\n    readonly return: InputOf<this> extends infer Input extends string ? TakeWhile1Internal<Input, Allowed> : never;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 439,
          "column": 3
        },
        "end": {
          "line": 459,
          "column": 4
        }
      },
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 456,
          "column": 5
        },
        "end": {
          "line": 458,
          "column": 15
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "parentId": "@typed/router/Parser#Parser",
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:cbc1e371deb5256028672a1e",
    "name": "TakeWhile1",
    "family": "interface",
    "facets": [
      {
        "family": "interface",
        "syntaxKind": "InterfaceDeclaration",
        "signatures": [
          "interface TakeWhile1<Allowed extends string> extends TypeFunction<string, Result<string, string>> {\n    readonly return: InputOf<this> extends infer Input extends string ? TakeWhile1Internal<Input, Allowed> : never;\n}"
        ],
        "typeParameters": [
          "Allowed extends string"
        ],
        "sourceSpans": [
          {
            "file": "packages/router/src/Parser.ts",
            "start": {
              "line": 439,
              "column": 3
            },
            "end": {
              "line": 459,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly return: InputOf<this> extends infer Input extends string ? TakeWhile1Internal<Input, Allowed> : never;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/Parser.ts",
            "start": {
              "line": 456,
              "column": 5
            },
            "end": {
              "line": 458,
              "column": 15
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "interface TakeWhile1<Allowed extends string> extends TypeFunction<string, Result<string, string>> {\n    readonly return: InputOf<this> extends infer Input extends string ? TakeWhile1Internal<Input, Allowed> : never;\n}"
    ],
    "typeParameters": [
      "Allowed extends string"
    ],
    "summary": "Consumes one or more allowed characters and fails on an empty prefix.",
    "sections": {
      "Why": "Required route names cannot silently parse as empty strings.",
      "Ownership and lifetime": "TypeScript instantiates `TakeWhile1` 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 `TakeWhile1.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": 439,
          "column": 3
        },
        "end": {
          "line": 459,
          "column": 4
        }
      },
      {
        "file": "packages/router/src/Parser.ts",
        "start": {
          "line": 456,
          "column": 5
        },
        "end": {
          "line": 458,
          "column": 15
        }
      }
    ],
    "since": "1.0.0",
    "category": "Parser repetition"
  }
}
