{
  "id": "@typed/router#make",
  "canonicalId": "@typed/router#make",
  "symbol": {
    "id": "@typed/router#make",
    "packageName": "@typed/router",
    "moduleName": ".",
    "exportName": "make",
    "kind": "function",
    "signatures": [
      "export declare function make<const P extends string, S extends Schema.Codec<any, Path.Params<P>, any, any> = Schema.Codec<Path.Params<P>>>(ast: AST.RouteAst): Route<P, S>;"
    ],
    "summary": "Constructs a Route from a Route AST and lazily memoizes its path and schemas.",
    "sections": {
      "Why": "Advanced builders can preserve the same invariants as built-in route constructors.",
      "Ownership and lifetime": "`make` constructs its Route immediately. The Route retains the supplied AST or route values and lazily memoizes derived paths and Codecs; Codec services are required only when decoding or encoding runs."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import * as Router from \"@typed/router\"\nimport { literal, path } from \"@typed/router/AST\"\n\nconst Account = Router.make<\"/account\">(path(literal(\"account\")))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/router/src/Route.ts",
      "line": 325
    },
    "since": "1.0.0",
    "category": "Route construction"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router#make",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/router",
    "exportName": "make",
    "qualifiedName": "make",
    "declarationKey": "declaration:7ea36f8cfcc9d9b5e1cb0e47",
    "family": "function",
    "signatures": [
      "export declare function make<const P extends string, S extends Schema.Codec<any, Path.Params<P>, any, any> = Schema.Codec<Path.Params<P>>>(ast: AST.RouteAst): Route<P, S>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Route.ts",
        "start": {
          "line": 325,
          "column": 1
        },
        "end": {
          "line": 354,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/router/Route#make"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:7ea36f8cfcc9d9b5e1cb0e47",
    "name": "make",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function make<const P extends string, S extends Schema.Codec<any, Path.Params<P>, any, any> = Schema.Codec<Path.Params<P>>>(ast: AST.RouteAst): Route<P, S>;"
        ],
        "typeParameters": [
          "const P extends string",
          "S extends Schema.Codec<any, Path.Params<P>, any, any> = Schema.Codec<Path.Params<P>>"
        ],
        "sourceSpans": [
          {
            "file": "packages/router/src/Route.ts",
            "start": {
              "line": 325,
              "column": 1
            },
            "end": {
              "line": 354,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function make<const P extends string, S extends Schema.Codec<any, Path.Params<P>, any, any> = Schema.Codec<Path.Params<P>>>(ast: AST.RouteAst): Route<P, S>;"
    ],
    "typeParameters": [
      "const P extends string",
      "S extends Schema.Codec<any, Path.Params<P>, any, any> = Schema.Codec<Path.Params<P>>"
    ],
    "summary": "Constructs a Route from a Route AST and lazily memoizes its path and schemas.",
    "sections": {
      "Why": "Advanced builders can preserve the same invariants as built-in route constructors.",
      "Ownership and lifetime": "`make` constructs its Route immediately. The Route retains the supplied AST or route values and lazily memoizes derived paths and Codecs; Codec services are required only when decoding or encoding runs."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import * as Router from \"@typed/router\"\nimport { literal, path } from \"@typed/router/AST\"\n\nconst Account = Router.make<\"/account\">(path(literal(\"account\")))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Route.ts",
        "start": {
          "line": 325,
          "column": 1
        },
        "end": {
          "line": 354,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Route construction"
  }
}
