{
  "id": "@typed/router/AST#PathAst.Parameter",
  "canonicalId": "@typed/router/AST#PathAst.Parameter",
  "symbol": {
    "id": "@typed/router/AST#PathAst.Parameter",
    "packageName": "@typed/router",
    "moduleName": "AST",
    "exportName": "PathAst.Parameter",
    "kind": "type",
    "signatures": [
      "type Parameter = {\n    type: \"parameter\";\n    name: string;\n    optional?: boolean;\n    regex?: string;\n};"
    ],
    "summary": "A named path parameter with optionality and an optional regular expression.",
    "sections": {
      "Why": "Parameter constraints stay available to both matcher registration and schema derivation.",
      "Ownership and lifetime": "`Parameter` describes plain readonly AST data. Routes and Matchers retain the concrete nodes they receive by reference; the type itself owns no resource.",
      "Property: name": "Name assigned to the decoded parameter field.",
      "Property: name: Why": "Duplicate decoded names can be rejected before matcher execution.",
      "Property: name: Ownership and lifetime": "The node retains the immutable name; decoded values are owned by the selected route's params\nRefSubject, not by this AST.",
      "Property: optional": "Whether this segment may be absent.",
      "Property: optional: Why": "Optionality controls both matcher syntax and optional schema fields.",
      "Property: optional: Ownership and lifetime": "The flag is immutable metadata retained with the node and creates no fallback value itself.",
      "Property: regex": "Optional source pattern constraining the captured segment.",
      "Property: regex: Why": "Constrained and generic parameters can compile to distinct matcher path shapes.",
      "Property: regex: Ownership and lifetime": "The node retains the pattern string. Matcher compilation interprets it later and can surface\ninvalid registration syntax as `RouteDecodeError`.",
      "Property: type": "Discriminates a named parameter node.",
      "Property: type: Why": "Schema derivation and matcher compilation must recognize captured segments identically.",
      "Property: type: Ownership and lifetime": "The literal tag remains on the plain node for its lifetime and owns no resource."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/router/src/AST.ts",
      "line": 87
    },
    "since": "1.0.0",
    "category": "Path syntax"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router/AST#PathAst.Parameter",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "AST",
    "consumerSpecifier": "@typed/router/AST",
    "exportName": "PathAst",
    "qualifiedName": "PathAst.Parameter",
    "declarationKey": "declaration:388bae770827bbf456834a8b",
    "family": "type-alias",
    "signatures": [
      "type Parameter = {\n    type: \"parameter\";\n    name: string;\n    optional?: boolean;\n    regex?: string;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 87,
          "column": 3
        },
        "end": {
          "line": 146,
          "column": 5
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 116,
          "column": 5
        },
        "end": {
          "line": 116,
          "column": 18
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 130,
          "column": 5
        },
        "end": {
          "line": 130,
          "column": 24
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 145,
          "column": 5
        },
        "end": {
          "line": 145,
          "column": 20
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 101,
          "column": 5
        },
        "end": {
          "line": 101,
          "column": 23
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "parentId": "@typed/router/AST#PathAst",
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:388bae770827bbf456834a8b",
    "name": "Parameter",
    "family": "type-alias",
    "facets": [
      {
        "family": "type-alias",
        "syntaxKind": "TypeAliasDeclaration",
        "signatures": [
          "type Parameter = {\n    type: \"parameter\";\n    name: string;\n    optional?: boolean;\n    regex?: string;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/AST.ts",
            "start": {
              "line": 87,
              "column": 3
            },
            "end": {
              "line": 146,
              "column": 5
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "name: string;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/AST.ts",
            "start": {
              "line": 116,
              "column": 5
            },
            "end": {
              "line": 116,
              "column": 18
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "optional?: boolean;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/AST.ts",
            "start": {
              "line": 130,
              "column": 5
            },
            "end": {
              "line": 130,
              "column": 24
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": true
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "regex?: string;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/AST.ts",
            "start": {
              "line": 145,
              "column": 5
            },
            "end": {
              "line": 145,
              "column": 20
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": true
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "type: \"parameter\";"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/router/src/AST.ts",
            "start": {
              "line": 101,
              "column": 5
            },
            "end": {
              "line": 101,
              "column": 23
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "type Parameter = {\n    type: \"parameter\";\n    name: string;\n    optional?: boolean;\n    regex?: string;\n};"
    ],
    "typeParameters": [],
    "summary": "A named path parameter with optionality and an optional regular expression.",
    "sections": {
      "Why": "Parameter constraints stay available to both matcher registration and schema derivation.",
      "Ownership and lifetime": "`Parameter` describes plain readonly AST data. Routes and Matchers retain the concrete nodes they receive by reference; the type itself owns no resource.",
      "Property: name": "Name assigned to the decoded parameter field.",
      "Property: name: Why": "Duplicate decoded names can be rejected before matcher execution.",
      "Property: name: Ownership and lifetime": "The node retains the immutable name; decoded values are owned by the selected route's params\nRefSubject, not by this AST.",
      "Property: optional": "Whether this segment may be absent.",
      "Property: optional: Why": "Optionality controls both matcher syntax and optional schema fields.",
      "Property: optional: Ownership and lifetime": "The flag is immutable metadata retained with the node and creates no fallback value itself.",
      "Property: regex": "Optional source pattern constraining the captured segment.",
      "Property: regex: Why": "Constrained and generic parameters can compile to distinct matcher path shapes.",
      "Property: regex: Ownership and lifetime": "The node retains the pattern string. Matcher compilation interprets it later and can surface\ninvalid registration syntax as `RouteDecodeError`.",
      "Property: type": "Discriminates a named parameter node.",
      "Property: type: Why": "Schema derivation and matcher compilation must recognize captured segments identically.",
      "Property: type: Ownership and lifetime": "The literal tag remains on the plain node for its lifetime and owns no resource."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 87,
          "column": 3
        },
        "end": {
          "line": 146,
          "column": 5
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 116,
          "column": 5
        },
        "end": {
          "line": 116,
          "column": 18
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 130,
          "column": 5
        },
        "end": {
          "line": 130,
          "column": 24
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 145,
          "column": 5
        },
        "end": {
          "line": 145,
          "column": 20
        }
      },
      {
        "file": "packages/router/src/AST.ts",
        "start": {
          "line": 101,
          "column": 5
        },
        "end": {
          "line": 101,
          "column": 23
        }
      }
    ],
    "since": "1.0.0",
    "category": "Path syntax"
  }
}
