{
  "id": "@typed/router#makeRouteExecutor",
  "canonicalId": "@typed/router/RouteExecutor#makeRouteExecutor",
  "symbol": {
    "id": "@typed/router#makeRouteExecutor",
    "packageName": "@typed/router",
    "moduleName": ".",
    "exportName": "makeRouteExecutor",
    "kind": "function",
    "signatures": [
      "export declare function makeRouteExecutor<A, E = never, R = never>(): Effect.Effect<RouteExecutor<A, E, R>, never, R | Scope.Scope>;"
    ],
    "summary": "Creates a scoped executor for route candidate decoding and selection.",
    "sections": {
      "Why": "One owner coordinates layer rollback, guard order, layout reuse, catch boundaries, and handler finalization.",
      "Ownership and lifetime": "The returned Effect must run inside the Scope that will own the executor. Do not let the executor escape\nthat Scope: closing it interrupts the selected handler and finalizes all Layer, layout, and catch children."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import * as Router from \"@typed/router\"\nimport * as Effect from \"effect/Effect\"\n\nconst useExecutor = Effect.scoped(\n  Effect.gen(function* () {\n    yield* Router.makeRouteExecutor<string>()\n    yield* Effect.log(\"route executor is owned by this scope\")\n  })\n)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/router/src/RouteExecutor.ts",
      "line": 164
    },
    "since": "1.0.0",
    "category": "Candidate execution"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router#makeRouteExecutor",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/router",
    "exportName": "makeRouteExecutor",
    "qualifiedName": "makeRouteExecutor",
    "declarationKey": "declaration:86d16cb8fcdcae0875173c51",
    "family": "function",
    "signatures": [
      "export declare function makeRouteExecutor<A, E = never, R = never>(): Effect.Effect<RouteExecutor<A, E, R>, never, R | Scope.Scope>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/RouteExecutor.ts",
        "start": {
          "line": 164,
          "column": 1
        },
        "end": {
          "line": 291,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/router/RouteExecutor#makeRouteExecutor"
    ],
    "isAlias": true,
    "static": false,
    "importedFrom": "declaration:86d16cb8fcdcae0875173c51"
  },
  "declaration": {
    "declarationKey": "declaration:86d16cb8fcdcae0875173c51",
    "name": "makeRouteExecutor",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function makeRouteExecutor<A, E = never, R = never>(): Effect.Effect<RouteExecutor<A, E, R>, never, R | Scope.Scope>;"
        ],
        "typeParameters": [
          "A",
          "E = never",
          "R = never"
        ],
        "sourceSpans": [
          {
            "file": "packages/router/src/RouteExecutor.ts",
            "start": {
              "line": 164,
              "column": 1
            },
            "end": {
              "line": 291,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function makeRouteExecutor<A, E = never, R = never>(): Effect.Effect<RouteExecutor<A, E, R>, never, R | Scope.Scope>;"
    ],
    "typeParameters": [
      "A",
      "E = never",
      "R = never"
    ],
    "summary": "Creates a scoped executor for route candidate decoding and selection.",
    "sections": {
      "Why": "One owner coordinates layer rollback, guard order, layout reuse, catch boundaries, and handler finalization.",
      "Ownership and lifetime": "The returned Effect must run inside the Scope that will own the executor. Do not let the executor escape\nthat Scope: closing it interrupts the selected handler and finalizes all Layer, layout, and catch children."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import * as Router from \"@typed/router\"\nimport * as Effect from \"effect/Effect\"\n\nconst useExecutor = Effect.scoped(\n  Effect.gen(function* () {\n    yield* Router.makeRouteExecutor<string>()\n    yield* Effect.log(\"route executor is owned by this scope\")\n  })\n)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/RouteExecutor.ts",
        "start": {
          "line": 164,
          "column": 1
        },
        "end": {
          "line": 291,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Candidate execution"
  }
}
