@teyik0/furin 0.9.0-alpha.4 → 0.9.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/adapter/runtime-build.d.ts +1 -0
  2. package/dist/adapter/vercel.js +9 -6
  3. package/dist/build/index.js +74 -31
  4. package/dist/build/route-metadata.d.ts +1 -1
  5. package/dist/cli/index.js +74 -31
  6. package/dist/client/chunks/{client-rdxyrw11.js → client-hjqd5m3b.js} +1 -1
  7. package/dist/client/chunks/{client-p0jqzfvc.js → client-whph3y67.js} +1 -1
  8. package/dist/client/chunks/{client-a7spxfnn.js → client-xf7r768c.js} +13 -1
  9. package/dist/client/define-route.d.ts +12 -0
  10. package/dist/client/internal/runtime-types.d.ts +7 -0
  11. package/dist/client/link.js +200 -40
  12. package/dist/client/route-element.d.ts +5 -0
  13. package/dist/client/router/history.d.ts +6 -0
  14. package/dist/client/router/link-utils.d.ts +7 -0
  15. package/dist/client/router/navigation-controller.d.ts +20 -2
  16. package/dist/client/router/pending.d.ts +17 -0
  17. package/dist/client/router/search/index.d.ts +2 -0
  18. package/dist/client/router/search/index.js +7 -3
  19. package/dist/client/router/types.d.ts +21 -1
  20. package/dist/client.js +19 -4
  21. package/dist/define-route.d.ts +37 -10
  22. package/dist/furin.js +88 -29
  23. package/dist/plugin/client-plugin.d.ts +1 -1
  24. package/dist/plugin/index.js +36 -17
  25. package/dist/plugin/route-manifest.d.ts +2 -1
  26. package/dist/plugin/strip-server-stages.d.ts +1 -1
  27. package/dist/server/internal.d.ts +1 -0
  28. package/dist/server/internal.js +42 -15
  29. package/dist/server/router/defined-route.d.ts +3 -0
  30. package/dist/server/router/types.d.ts +7 -1
  31. package/dist/server/static-export.js +45 -15
  32. package/dist/shared/pending.d.ts +13 -0
  33. package/dist/shared/search-params.d.ts +1 -0
  34. package/package.json +1 -1
  35. package/src/adapter/runtime-build.ts +4 -0
  36. package/src/adapter/vercel.ts +21 -8
  37. package/src/build/hydrate.ts +11 -2
  38. package/src/build/preload-manifest.ts +3 -1
  39. package/src/build/route-metadata.ts +3 -2
  40. package/src/client/define-route.ts +23 -3
  41. package/src/client/internal/runtime-types.ts +7 -0
  42. package/src/client/link.tsx +26 -4
  43. package/src/client/route-element.tsx +41 -15
  44. package/src/client/router/context.ts +29 -8
  45. package/src/client/router/history.ts +10 -0
  46. package/src/client/router/link-utils.ts +23 -0
  47. package/src/client/router/navigation-controller.ts +239 -19
  48. package/src/client/router/pending.ts +58 -0
  49. package/src/client/router/provider.tsx +5 -2
  50. package/src/client/router/search/index.ts +7 -2
  51. package/src/client/router/types.ts +29 -3
  52. package/src/define-route.ts +74 -26
  53. package/src/plugin/client-plugin.ts +5 -4
  54. package/src/plugin/route-config.ts +9 -2
  55. package/src/plugin/route-manifest.ts +11 -3
  56. package/src/plugin/route-tree.ts +2 -2
  57. package/src/plugin/strip-server-stages.ts +60 -35
  58. package/src/server/internal.ts +1 -0
  59. package/src/server/router/defined-route.ts +6 -0
  60. package/src/server/router/discovery.ts +5 -2
  61. package/src/server/router/types.ts +7 -1
  62. package/src/shared/pending.ts +16 -0
  63. package/src/shared/search-params.ts +1 -1
@@ -1,11 +1,15 @@
1
+ import { type SearchParamsInput } from "../../shared/search-params.ts";
1
2
  import type { OptimisticRuntime } from "./optimistic.ts";
2
3
  import type { PageResult } from "./page-fetch.ts";
4
+ import type { PendingScreen } from "./pending.ts";
3
5
  import type { LoadedClientRoute, RouterState } from "./types.ts";
4
6
  /** What React renders: the committed page plus navigation status. */
5
7
  export interface NavigationSnapshot {
6
8
  /** Logical href (basePath stripped) of the committed page. */
7
9
  href: string;
8
10
  isNavigating: boolean;
11
+ /** Pending screen shown in place of the committed page while a slow navigation loads. */
12
+ pending?: PendingScreen;
9
13
  /** Bumped on every non-error commit so error boundaries reset. */
10
14
  resetVersion: number;
11
15
  state: RouterState;
@@ -22,17 +26,31 @@ export interface NavigationControllerConfig {
22
26
  signal: AbortSignal | undefined;
23
27
  }) => Promise<PageResult>;
24
28
  maxCacheSize: number;
29
+ /** Pending screen of the route `href` targets, measured against the committed match. */
30
+ resolvePending: (request: {
31
+ currentMatch: LoadedClientRoute | null;
32
+ href: string;
33
+ }) => Promise<PendingScreen | undefined>;
25
34
  }
26
35
  export interface NavigateRequest {
27
36
  /** Runs right before the new snapshot is published (HMR swaps components here). */
28
37
  beforeCommit?: () => void;
29
38
  hmrRefresh?: boolean;
39
+ /** `false` keeps the current page on screen instead of the target's pending screen. */
40
+ pending?: boolean;
30
41
  replace?: boolean;
31
42
  resetScroll?: boolean;
43
+ /**
44
+ * Validated search the destination will read. Only with it can a page
45
+ * already loaded for the same path be reused (see `loaderDeps`, `shallow`).
46
+ */
47
+ search?: SearchParamsInput;
48
+ /** Same path: commit the new URL and search in place without running loaders. */
49
+ shallow?: boolean;
32
50
  /** Returning `false` discards the navigation result instead of committing it. */
33
51
  shouldCommit?: () => boolean;
34
52
  }
35
- export type RefreshRequest = Omit<NavigateRequest, "replace">;
53
+ export type RefreshRequest = Omit<NavigateRequest, "replace" | "search" | "shallow">;
36
54
  export type ScrollInstruction = {
37
55
  type: "restore";
38
56
  key: string;
@@ -60,7 +78,7 @@ export declare class NavigationController {
60
78
  readonly popState: () => void;
61
79
  /** Re-fetches the current URL in place. */
62
80
  readonly refresh: (request?: RefreshRequest) => Promise<void>;
63
- readonly prefetch: (href: string, staleTime: number | undefined) => void;
81
+ readonly prefetch: (href: string, staleTime: number | undefined, search?: SearchParamsInput) => void;
64
82
  /** Drops cached pages under `path` and marks in-flight ones stale. */
65
83
  readonly invalidatePath: (path: string, type: "page" | "layout") => void;
66
84
  /** Access changes must also prevent old navigations and deferred streams from publishing. */
@@ -0,0 +1,17 @@
1
+ import type { PendingComponent } from "../../shared/pending.ts";
2
+ import type { ClientRoute, LoadedClientRoute } from "./types.ts";
3
+ /** A pending screen to render inside the committed layout at `depth`. */
4
+ export interface PendingScreen {
5
+ component: PendingComponent;
6
+ depth: number;
7
+ minMs: number;
8
+ ms: number;
9
+ }
10
+ /**
11
+ * The pending screen a navigation to `href` shows, if any. It renders inside
12
+ * the deepest layout the target shares with the current page, in place of
13
+ * the first segment that changes, as in TanStack Router (only the matches
14
+ * being loaded show their pending) and Next.js (a `loading.tsx` falls back
15
+ * only when its child segment changes). The deepest declaration wins.
16
+ */
17
+ export declare function resolvePendingScreen(routes: readonly ClientRoute[], href: string, current: LoadedClientRoute | null): Promise<PendingScreen | undefined>;
@@ -14,6 +14,8 @@ export type SetSearchInput<To extends SearchRouteTo> = Partial<ResolvedRouteSear
14
14
  export interface SetSearchOptions {
15
15
  replace?: boolean;
16
16
  resetScroll?: boolean;
17
+ /** See `TargetNavigationOptions.shallow`. */
18
+ shallow?: boolean;
17
19
  }
18
20
  export type SetSearch<To extends SearchRouteTo> = (next: SetSearchInput<To>, opts?: SetSearchOptions) => Promise<void>;
19
21
  export declare function useSearch<To extends SearchRouteTo>(_from: To & SearchRouteCheck<NoInfer<To>>): [ResolvedRouteSearch<To>, SetSearch<To>];
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  FALLBACK_SEARCH_STORE,
3
3
  SearchStoreContext
4
- } from "../../chunks/client-rdxyrw11.js";
4
+ } from "../../chunks/client-hjqd5m3b.js";
5
5
  import {
6
6
  findSearchDefaultsForRouteTarget,
7
+ resolveTargetSearch,
7
8
  buildHref2
8
- } from "../../chunks/client-a7spxfnn.js";
9
+ } from "../../chunks/client-xf7r768c.js";
9
10
 
10
11
  // src/client/router/search/index.ts
11
12
  import { useCallback, useContext, useMemo, useSyncExternalStore } from "react";
@@ -51,7 +52,10 @@ function useSearch(from, selector) {
51
52
  const pathname = pathnameFromLogicalHref(snapshot.currentHref);
52
53
  const searchDefaults = findSearchDefaultsForRouteTarget(pathname, snapshot.searchRoutes);
53
54
  const href = buildHref2(pathname, merged, undefined, searchDefaults);
54
- return snapshot.navigate(href, opts);
55
+ return snapshot.navigate(href, {
56
+ ...opts,
57
+ search: resolveTargetSearch(pathname, merged, snapshot.searchRoutes)
58
+ });
55
59
  }, [from, store]);
56
60
  return [selected, setSearch];
57
61
  }
@@ -5,6 +5,7 @@ import type { RouteContractOf } from "../../define-route.ts";
5
5
  import type { ElysiaRouteLeaf, ElysiaRouteParams, ElysiaRouteQuery } from "../../shared/elysia-contract.ts";
6
6
  import type { ErrorComponent } from "../../shared/error.ts";
7
7
  import type { NotFoundComponent } from "../../shared/not-found.ts";
8
+ import type { RoutePending } from "../../shared/pending.ts";
8
9
  import type { SearchParamsInput, SearchRouteMetadata } from "../../shared/search-params.ts";
9
10
  import type { RuntimeData, RuntimeRoute } from "../internal/runtime-types.ts";
10
11
  import type { FurinServerErrorPayload } from "../server-error.ts";
@@ -146,6 +147,8 @@ export interface LinkBaseProps<To extends RouteTo> extends Omit<React.AnchorHTML
146
147
  resetScroll?: boolean;
147
148
  /** Typed search params for this route. Auto-completed from the route's query schema. */
148
149
  search?: RouteSearch<To>;
150
+ /** See `TargetNavigationOptions.shallow`. */
151
+ shallow?: boolean;
149
152
  to: To;
150
153
  }
151
154
  export type LinkProps<To extends RouteTo = RouteTo> = LinkBaseProps<To> & LinkParams<To> & SearchProp<RouteSearch<To>> & RouteToCheck<To>;
@@ -180,7 +183,18 @@ export interface NavigationOptions {
180
183
  replace?: boolean;
181
184
  resetScroll?: boolean;
182
185
  }
183
- export type NavigateInput<To extends NavigationTo> = RouteTarget<To> & NavigationOptions;
186
+ /** Options of navigations that name their destination's `search` (not raw hrefs). */
187
+ export interface TargetNavigationOptions extends NavigationOptions {
188
+ /**
189
+ * Same route and params: commit the new URL and search in place, without
190
+ * running loaders or setting `isNavigating`. Another destination navigates
191
+ * normally. Back/forward still load the page unless the route's
192
+ * `loaderDeps` exclude the changed params; reloads always do. Keeps the scroll
193
+ * position unless `resetScroll` is set.
194
+ */
195
+ shallow?: boolean;
196
+ }
197
+ export type NavigateInput<To extends NavigationTo> = RouteTarget<To> & TargetNavigationOptions;
184
198
  export type Navigate = <To extends NavigationTo>(next: NavigateInput<To>) => Promise<void>;
185
199
  /** An href string validated like a structured destination (see `CheckedRouteTo`). */
186
200
  type CheckedHref<Href extends string> = Href & RouteToCheck<NoInfer<Href>>;
@@ -224,11 +238,15 @@ export interface RouterContextValue {
224
238
  */
225
239
  invalidatePrefetch: (path: string, type: "page" | "layout") => void;
226
240
  isNavigating: boolean;
241
+ /** `search`: the destination's validated search, when the caller knows it (enables `loaderDeps` and `shallow`). */
227
242
  navigate: (href: string, opts?: {
228
243
  replace?: boolean;
229
244
  resetScroll?: boolean;
245
+ search?: SearchParamsInput;
246
+ shallow?: boolean;
230
247
  }) => Promise<void>;
231
248
  prefetch: (href: string, opts?: {
249
+ search?: SearchParamsInput;
232
250
  staleTime?: number;
233
251
  }) => void;
234
252
  /**
@@ -269,6 +287,8 @@ export interface ClientSegmentBoundary {
269
287
  /** False when a pathless directory shares index 0 but does not own the root fallback. */
270
288
  isRoot?: boolean;
271
289
  notFound?: NotFoundComponent;
290
+ /** Shown inside the layout at `depth` while a navigation into this route loads. */
291
+ pending?: RoutePending;
272
292
  }
273
293
  export interface ClientRoute {
274
294
  component?: React.ComponentType<RuntimeData>;
package/dist/client.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  useInfiniteQuery2,
13
13
  getRouteApi2,
14
14
  createSyncCatchUp
15
- } from "./client/chunks/client-p0jqzfvc.js";
15
+ } from "./client/chunks/client-whph3y67.js";
16
16
 
17
17
  // src/client/client-module.ts
18
18
  import { preloadModule } from "react-dom";
@@ -39,10 +39,14 @@ function preloadClientModule(mod) {
39
39
  }
40
40
  // src/client/define-route.ts
41
41
  function createRouteBuilder(state) {
42
- const { errorComponent, notFoundComponent, remountDeps } = state;
42
+ const { errorComponent, loaderDeps, notFoundComponent, pending, remountDeps } = state;
43
43
  return {
44
44
  config(options) {
45
- return createRouteBuilder({ ...state, remountDeps: options.remountDeps });
45
+ return createRouteBuilder({
46
+ ...state,
47
+ loaderDeps: options.loaderDeps,
48
+ remountDeps: options.remountDeps
49
+ });
46
50
  },
47
51
  error(component) {
48
52
  return createRouteBuilder({ ...state, errorComponent: component });
@@ -54,20 +58,29 @@ function createRouteBuilder(state) {
54
58
  component: runtimeComponent,
55
59
  errorComponent,
56
60
  layout: runtimeComponent,
57
- notFoundComponent
61
+ notFoundComponent,
62
+ pending
58
63
  };
59
64
  },
60
65
  notFound(component) {
61
66
  return createRouteBuilder({ ...state, notFoundComponent: component });
62
67
  },
68
+ pending(component, options) {
69
+ return createRouteBuilder({
70
+ ...state,
71
+ pending: { component, minMs: options?.minMs, ms: options?.ms }
72
+ });
73
+ },
63
74
  page(component) {
64
75
  const runtimeComponent = component;
65
76
  return {
66
77
  __type: "FURIN_ROUTE",
67
78
  component: runtimeComponent,
68
79
  errorComponent,
80
+ loaderDeps,
69
81
  notFoundComponent,
70
82
  page: runtimeComponent,
83
+ pending,
71
84
  remountDeps
72
85
  };
73
86
  }
@@ -75,7 +88,9 @@ function createRouteBuilder(state) {
75
88
  }
76
89
  var EMPTY_BUILDER = {
77
90
  errorComponent: undefined,
91
+ loaderDeps: undefined,
78
92
  notFoundComponent: undefined,
93
+ pending: undefined,
79
94
  remountDeps: undefined
80
95
  };
81
96
  function defineRoute(_id) {
@@ -6,6 +6,7 @@ import type { FurinSchema, FurinUnwrap, FurinUnwrapInput } from "./shared/elysia
6
6
  import type { ErrorComponent } from "./shared/error.ts";
7
7
  import type { NotFoundComponent } from "./shared/not-found.ts";
8
8
  import type { RemountDependency, RemountDeps } from "./shared/page-key.ts";
9
+ import type { PendingComponent, PendingOptions, RoutePending } from "./shared/pending.ts";
9
10
  type NoFields = NonNullable<unknown>;
10
11
  type Awaitable<T> = Promise<T> | T;
11
12
  export declare const FURIN_RENDER_DECORATOR = "$furinRender";
@@ -119,7 +120,18 @@ type RenderingConfig = SharedRouteConfig & ({
119
120
  mode: "isr";
120
121
  revalidate: number;
121
122
  });
123
+ /** Synchronous: a promise would compare equal to any other promise. */
124
+ type LoaderDependencies = object & {
125
+ readonly then?: never;
126
+ };
122
127
  export type DefineRouteConfig<Params = NoFields, Query = NoFields> = RenderingConfig & {
128
+ /**
129
+ * Page routes: the part of the validated query the loaders read. A client
130
+ * navigation that keeps the path and these deps (compared deeply) reuses
131
+ * the loaded page and only updates the URL and `query`. Loaders still
132
+ * receive the full query and always run on the server for documents.
133
+ */
134
+ loaderDeps?: (query: Query) => LoaderDependencies;
123
135
  remountDeps?: RemountDeps<Params, Query>;
124
136
  };
125
137
  type ConfigFor<Params, Query> = DefineRouteConfig<Params, Query>;
@@ -133,6 +145,7 @@ interface ErasedStaticParamsContext {
133
145
  [key: string]: unknown;
134
146
  }
135
147
  type RouteMetadata = RenderingConfig & {
148
+ loaderDeps?: (query: never) => LoaderDependencies;
136
149
  remountDeps?: (context: never) => readonly RemountDependency[];
137
150
  staticParams?: (context: ErasedStaticParamsContext) => Awaitable<readonly unknown[]>;
138
151
  };
@@ -325,6 +338,11 @@ interface FileRouteContract<Entry> {
325
338
  search: ContractOf<FileRouteParent<Entry>>["search"];
326
339
  }
327
340
  type FileConfiguredRoute<Entry, ParamsSchema extends FurinSchema | undefined, QuerySchema extends FurinSchema | undefined, Schemas extends RouteSchemas | undefined, Mode extends RenderingMode> = ConfiguredStage<InitialState<MergeSchemaValues<FileRouteContract<Entry>["params"], ParamsOf<ParamsSchema>>, MergeSchemaValues<FileRouteContract<Entry>["query"], ParamsOf<QuerySchema>>, MergeSchemaValues<FileRouteContract<Entry>["search"], SearchInputOf<QuerySchema>>, Schemas, DataOfRoute<FileRouteParent<Entry>>, ContractOf<FileRouteParent<Entry>>["params"], Mode, FileRouteKind<Entry>>>;
341
+ /** `loaderDeps` describes a page response: layout configs cannot declare it. */
342
+ interface NoLoaderDepsOption {
343
+ loaderDeps?: FurinTypeError<"loaderDeps belongs to page routes: declare it on the page config">;
344
+ }
345
+ type KindConfigOption<Kind extends RouteKind> = [Kind] extends ["layout"] ? NoLoaderDepsOption : unknown;
328
346
  /** Keyed routes take their parent layout from the pages tree. */
329
347
  interface NoLayoutOption {
330
348
  layout?: FurinTypeError<"defineRoute(id) reads the parent layout from the pages tree: remove layout">;
@@ -338,14 +356,16 @@ interface ChainRuntime {
338
356
  metadata: RouteMetadata;
339
357
  notFoundComponent: NotFoundComponent | undefined;
340
358
  paramsSchema: FurinSchema | undefined;
359
+ pending: RoutePending | undefined;
341
360
  querySchema: FurinSchema | undefined;
342
361
  requestLoader: unknown;
343
362
  }
344
- /** `.error()` / `.notFound()` keep the stage they are called on. */
345
- type BoundaryMethods = "error" | "notFound";
363
+ /** `.error()` / `.notFound()` / `.pending()` keep the stage they are called on. */
364
+ type BoundaryMethods = "error" | "notFound" | "pending";
346
365
  interface BoundaryStage<Stage> {
347
366
  error: (component: ErrorComponent) => Stage;
348
367
  notFound: (component: NotFoundComponent) => Stage;
368
+ pending: (component: PendingComponent, options?: PendingOptions) => Stage;
349
369
  }
350
370
  /** SSR routes render per request: `staticParams()` needs mode `ssg` or `isr`. */
351
371
  interface SsrRouteStage<State extends ChainState> extends Omit<RouteChain<State>, "staticParams" | BoundaryMethods>, BoundaryStage<SsrRouteStage<State>> {
@@ -370,6 +390,7 @@ type RouteTerminal<State extends ChainState> = {
370
390
  __type: "FURIN_ROUTE";
371
391
  errorComponent: ErrorComponent | undefined;
372
392
  notFoundComponent: NotFoundComponent | undefined;
393
+ pending: RoutePending | undefined;
373
394
  head: Head<State["params"], State["query"], State["parentData"], State["data"], State["mode"]> | undefined;
374
395
  mode: State["mode"];
375
396
  readonly [inheritedDataBrand]?: State["parentData"];
@@ -379,6 +400,7 @@ type RouteTerminal<State extends ChainState> = {
379
400
  query: State["query"];
380
401
  search: State["search"];
381
402
  };
403
+ loaderDeps: RouteMetadata["loaderDeps"];
382
404
  remountDeps: RouteMetadata["remountDeps"];
383
405
  requestLoader: RequestLoader<State["params"], State["query"], State["requestData"]> | undefined;
384
406
  revalidate: number | undefined;
@@ -411,6 +433,11 @@ declare class RouteChain<State extends ChainState> {
411
433
  error(component: ErrorComponent): this;
412
434
  /** TanStack style: renders when this route or one below it calls `notFound()`. */
413
435
  notFound(component: NotFoundComponent): this;
436
+ /**
437
+ * TanStack style: renders in place of this route (in its parent's outlet)
438
+ * while a client navigation into it outlasts `options.ms`, as `pendingComponent` does.
439
+ */
440
+ pending(component: PendingComponent, options?: PendingOptions): this;
414
441
  requestLoader<Data extends RequestLoaderData>(requestLoader: RequestLoader<State["params"], State["query"], Data>): StaticParamsClosedStage<WithState<State, {
415
442
  requestData: Data;
416
443
  }>>;
@@ -429,14 +456,14 @@ declare class RouteChain<State extends ChainState> {
429
456
  * `config()` requires only `mode` (the TanStack `createRootRoute` analogue).
430
457
  */
431
458
  declare class UnconfiguredRootRoute {
432
- config<QuerySchema extends FurinSchema, Mode extends RenderingMode>(options: ResolvedConfig<EmptyContract, undefined, QuerySchema> & {
459
+ config<QuerySchema extends FurinSchema, Mode extends RenderingMode>(options: ResolvedConfig<EmptyContract, undefined, QuerySchema> & NoLoaderDepsOption & {
433
460
  mode: Mode;
434
461
  params?: undefined;
435
462
  query: QuerySchema;
436
463
  }): ConfiguredRoute<EmptyContract, NoFields, undefined, QuerySchema, {
437
464
  query: QuerySchema;
438
465
  }, Mode>;
439
- config<ParamsSchema extends FurinSchema, QuerySchema extends FurinSchema, Mode extends RenderingMode>(options: ResolvedConfig<EmptyContract, ParamsSchema, QuerySchema> & {
466
+ config<ParamsSchema extends FurinSchema, QuerySchema extends FurinSchema, Mode extends RenderingMode>(options: ResolvedConfig<EmptyContract, ParamsSchema, QuerySchema> & NoLoaderDepsOption & {
440
467
  mode: Mode;
441
468
  params: ParamsSchema;
442
469
  query: QuerySchema;
@@ -444,7 +471,7 @@ declare class UnconfiguredRootRoute {
444
471
  params: ParamsSchema;
445
472
  query: QuerySchema;
446
473
  }, Mode>;
447
- config<ParamsSchema extends FurinSchema, Mode extends RenderingMode>(options: ResolvedConfig<EmptyContract, ParamsSchema, undefined> & {
474
+ config<ParamsSchema extends FurinSchema, Mode extends RenderingMode>(options: ResolvedConfig<EmptyContract, ParamsSchema, undefined> & NoLoaderDepsOption & {
448
475
  mode: Mode;
449
476
  params: ParamsSchema;
450
477
  query?: undefined;
@@ -452,7 +479,7 @@ declare class UnconfiguredRootRoute {
452
479
  params: ParamsSchema;
453
480
  query: undefined;
454
481
  }, Mode>;
455
- config<Mode extends RenderingMode>(options: ResolvedConfig<EmptyContract, undefined, undefined> & {
482
+ config<Mode extends RenderingMode>(options: ResolvedConfig<EmptyContract, undefined, undefined> & NoLoaderDepsOption & {
456
483
  mode: Mode;
457
484
  params?: undefined;
458
485
  query?: undefined;
@@ -466,14 +493,14 @@ declare class UnconfiguredRootRoute {
466
493
  * `params` only refines the path params.
467
494
  */
468
495
  declare class UnconfiguredFileRoute<Entry> {
469
- config<QuerySchema extends FurinSchema, Mode extends RenderingMode>(options: ResolvedConfig<FileRouteContract<Entry>, undefined, QuerySchema> & NoLayoutOption & {
496
+ config<QuerySchema extends FurinSchema, Mode extends RenderingMode>(options: ResolvedConfig<FileRouteContract<Entry>, undefined, QuerySchema> & NoLayoutOption & KindConfigOption<FileRouteKind<Entry>> & {
470
497
  mode: Mode;
471
498
  params?: undefined;
472
499
  query: QuerySchema;
473
500
  }): FileConfiguredRoute<Entry, undefined, QuerySchema, {
474
501
  query: QuerySchema;
475
502
  }, Mode>;
476
- config<ParamsSchema extends FurinSchema, QuerySchema extends FurinSchema, Mode extends RenderingMode>(options: ResolvedConfig<FileRouteContract<Entry>, ParamsSchema, QuerySchema> & NoLayoutOption & {
503
+ config<ParamsSchema extends FurinSchema, QuerySchema extends FurinSchema, Mode extends RenderingMode>(options: ResolvedConfig<FileRouteContract<Entry>, ParamsSchema, QuerySchema> & NoLayoutOption & KindConfigOption<FileRouteKind<Entry>> & {
477
504
  mode: Mode;
478
505
  params: ParamsSchema;
479
506
  query: QuerySchema;
@@ -481,7 +508,7 @@ declare class UnconfiguredFileRoute<Entry> {
481
508
  params: ParamsSchema;
482
509
  query: QuerySchema;
483
510
  }, Mode>;
484
- config<ParamsSchema extends FurinSchema, Mode extends RenderingMode>(options: ResolvedConfig<FileRouteContract<Entry>, ParamsSchema, undefined> & NoLayoutOption & {
511
+ config<ParamsSchema extends FurinSchema, Mode extends RenderingMode>(options: ResolvedConfig<FileRouteContract<Entry>, ParamsSchema, undefined> & NoLayoutOption & KindConfigOption<FileRouteKind<Entry>> & {
485
512
  mode: Mode;
486
513
  params: ParamsSchema;
487
514
  query?: undefined;
@@ -489,7 +516,7 @@ declare class UnconfiguredFileRoute<Entry> {
489
516
  params: ParamsSchema;
490
517
  query: undefined;
491
518
  }, Mode>;
492
- config<Mode extends RenderingMode>(options: ResolvedConfig<FileRouteContract<Entry>, undefined, undefined> & NoLayoutOption & {
519
+ config<Mode extends RenderingMode>(options: ResolvedConfig<FileRouteContract<Entry>, undefined, undefined> & NoLayoutOption & KindConfigOption<FileRouteKind<Entry>> & {
493
520
  mode: Mode;
494
521
  params?: undefined;
495
522
  query?: undefined;