werkbank
    Preparing search index...

    Type Alias InferredRouterConfig<Paths, RouterContext>

    InferredRouterConfig: {
        [Key in keyof Paths]: Paths[Key] extends Readonly<PathPattern>
            ? InferredRouteConfig<
                Params<Paths[Key]>,
                undefined,
                undefined,
                RouterContext,
            >
            : Paths[Key] extends Readonly<
                RouteConfig<infer Path, infer Search, infer Children>,
            >
                ? InferredRouteConfig<
                    Params<Path>,
                    Search,
                    Children extends RoutesConfig
                        ? InferredRouterConfig<Children, RouterContext>
                        : undefined,
                    RouterContext,
                >
                : never
    }

    Represents the full inferred router configuration.

    Type Parameters

    • Paths extends RoutesConfig

      The routes configuration.

    • RouterContext

      The router context.

    This type mirrors the structure of CreateRouterConfig but uses InferredRouteConfig to provide a more consumable type structure for the router implementation.