@teyik0/furin 0.9.0-alpha.3 → 0.9.0-alpha.5
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.
- package/dist/adapter/runtime-build.d.ts +1 -0
- package/dist/build/index.js +65 -25
- package/dist/build/route-metadata.d.ts +1 -1
- package/dist/cli/index.js +65 -25
- package/dist/client/chunks/{client-rdxyrw11.js → client-hjqd5m3b.js} +1 -1
- package/dist/client/chunks/{client-d9v49jwz.js → client-whph3y67.js} +66 -3
- package/dist/client/chunks/{client-a7spxfnn.js → client-xf7r768c.js} +13 -1
- package/dist/client/define-route.d.ts +12 -0
- package/dist/client/internal/runtime-types.d.ts +7 -0
- package/dist/client/link.js +200 -40
- package/dist/client/query.d.ts +13 -0
- package/dist/client/route-element.d.ts +5 -0
- package/dist/client/router/history.d.ts +6 -0
- package/dist/client/router/link-utils.d.ts +7 -0
- package/dist/client/router/navigation-controller.d.ts +20 -2
- package/dist/client/router/pending.d.ts +17 -0
- package/dist/client/router/search/index.d.ts +2 -0
- package/dist/client/router/search/index.js +7 -3
- package/dist/client/router/types.d.ts +21 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +21 -4
- package/dist/define-route.d.ts +37 -10
- package/dist/furin.js +92 -43
- package/dist/plugin/client-plugin.d.ts +1 -1
- package/dist/plugin/index.js +36 -17
- package/dist/plugin/route-manifest.d.ts +2 -1
- package/dist/plugin/strip-server-stages.d.ts +1 -1
- package/dist/server/dev/graph.d.ts +0 -1
- package/dist/server/internal.d.ts +1 -0
- package/dist/server/internal.js +46 -22
- package/dist/server/router/defined-route.d.ts +3 -0
- package/dist/server/router/hmr.d.ts +0 -1
- package/dist/server/router/source-version.d.ts +0 -1
- package/dist/server/router/types.d.ts +7 -1
- package/dist/server/static-export.js +49 -22
- package/dist/server/sync/index.js +1 -1
- package/dist/shared/pending.d.ts +13 -0
- package/dist/shared/search-params.d.ts +1 -0
- package/dist/sync-client.js +1 -1
- package/package.json +1 -1
- package/src/adapter/runtime-build.ts +4 -0
- package/src/build/hydrate.ts +11 -2
- package/src/build/preload-manifest.ts +3 -1
- package/src/build/route-metadata.ts +3 -2
- package/src/client/define-route.ts +23 -3
- package/src/client/internal/runtime-types.ts +7 -0
- package/src/client/link.tsx +26 -4
- package/src/client/query-store.ts +2 -1
- package/src/client/query.tsx +87 -0
- package/src/client/route-element.tsx +41 -15
- package/src/client/router/context.ts +29 -8
- package/src/client/router/history.ts +10 -0
- package/src/client/router/link-utils.ts +23 -0
- package/src/client/router/navigation-controller.ts +239 -19
- package/src/client/router/pending.ts +58 -0
- package/src/client/router/provider.tsx +5 -2
- package/src/client/router/search/index.ts +7 -2
- package/src/client/router/types.ts +29 -3
- package/src/client.ts +1 -1
- package/src/define-route.ts +74 -26
- package/src/plugin/client-plugin.ts +5 -4
- package/src/plugin/route-config.ts +9 -2
- package/src/plugin/route-manifest.ts +11 -3
- package/src/plugin/route-tree.ts +2 -2
- package/src/plugin/strip-server-stages.ts +60 -35
- package/src/server/dev/graph.ts +2 -7
- package/src/server/dev/runtime.ts +1 -2
- package/src/server/internal.ts +1 -0
- package/src/server/router/defined-route.ts +6 -0
- package/src/server/router/discovery.ts +5 -2
- package/src/server/router/hmr.ts +1 -5
- package/src/server/router/source-version.ts +3 -6
- package/src/server/router/types.ts +7 -1
- package/src/shared/pending.ts +16 -0
- package/src/shared/search-params.ts +1 -1
|
@@ -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-
|
|
4
|
+
} from "../../chunks/client-hjqd5m3b.js";
|
|
5
5
|
import {
|
|
6
6
|
findSearchDefaultsForRouteTarget,
|
|
7
|
+
resolveTargetSearch,
|
|
7
8
|
buildHref2
|
|
8
|
-
} from "../../chunks/client-
|
|
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,
|
|
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
|
-
|
|
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.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { defineRootRoute, defineRoute } from "./client/define-route.ts";
|
|
|
3
3
|
export { type DocumentAssets, DocumentProvider, type DocumentState, HeadContent, Scripts, } from "./client/document.tsx";
|
|
4
4
|
export { type HotComponentRegistry, reconcileHotComponentRegistry, updateHotComponent, } from "./client/hmr.ts";
|
|
5
5
|
export { useMutation } from "./client/mutation.ts";
|
|
6
|
-
export { useQuery } from "./client/query.tsx";
|
|
6
|
+
export { useInfiniteQuery, useQuery } from "./client/query.tsx";
|
|
7
7
|
export type { LiveQuery } from "./client/query-store.ts";
|
|
8
8
|
export { getRouteApi } from "./client/route-api.tsx";
|
|
9
9
|
export { furinSync, type OptimisticCache, type SyncCallOptions } from "./client/sync.ts";
|
package/dist/client.js
CHANGED
|
@@ -9,9 +9,10 @@ import {
|
|
|
9
9
|
SYNC_REQUEST,
|
|
10
10
|
findOptimisticRuntime,
|
|
11
11
|
useQuery2,
|
|
12
|
+
useInfiniteQuery2,
|
|
12
13
|
getRouteApi2,
|
|
13
14
|
createSyncCatchUp
|
|
14
|
-
} from "./client/chunks/client-
|
|
15
|
+
} from "./client/chunks/client-whph3y67.js";
|
|
15
16
|
|
|
16
17
|
// src/client/client-module.ts
|
|
17
18
|
import { preloadModule } from "react-dom";
|
|
@@ -38,10 +39,14 @@ function preloadClientModule(mod) {
|
|
|
38
39
|
}
|
|
39
40
|
// src/client/define-route.ts
|
|
40
41
|
function createRouteBuilder(state) {
|
|
41
|
-
const { errorComponent, notFoundComponent, remountDeps } = state;
|
|
42
|
+
const { errorComponent, loaderDeps, notFoundComponent, pending, remountDeps } = state;
|
|
42
43
|
return {
|
|
43
44
|
config(options) {
|
|
44
|
-
return createRouteBuilder({
|
|
45
|
+
return createRouteBuilder({
|
|
46
|
+
...state,
|
|
47
|
+
loaderDeps: options.loaderDeps,
|
|
48
|
+
remountDeps: options.remountDeps
|
|
49
|
+
});
|
|
45
50
|
},
|
|
46
51
|
error(component) {
|
|
47
52
|
return createRouteBuilder({ ...state, errorComponent: component });
|
|
@@ -53,20 +58,29 @@ function createRouteBuilder(state) {
|
|
|
53
58
|
component: runtimeComponent,
|
|
54
59
|
errorComponent,
|
|
55
60
|
layout: runtimeComponent,
|
|
56
|
-
notFoundComponent
|
|
61
|
+
notFoundComponent,
|
|
62
|
+
pending
|
|
57
63
|
};
|
|
58
64
|
},
|
|
59
65
|
notFound(component) {
|
|
60
66
|
return createRouteBuilder({ ...state, notFoundComponent: component });
|
|
61
67
|
},
|
|
68
|
+
pending(component, options) {
|
|
69
|
+
return createRouteBuilder({
|
|
70
|
+
...state,
|
|
71
|
+
pending: { component, minMs: options?.minMs, ms: options?.ms }
|
|
72
|
+
});
|
|
73
|
+
},
|
|
62
74
|
page(component) {
|
|
63
75
|
const runtimeComponent = component;
|
|
64
76
|
return {
|
|
65
77
|
__type: "FURIN_ROUTE",
|
|
66
78
|
component: runtimeComponent,
|
|
67
79
|
errorComponent,
|
|
80
|
+
loaderDeps,
|
|
68
81
|
notFoundComponent,
|
|
69
82
|
page: runtimeComponent,
|
|
83
|
+
pending,
|
|
70
84
|
remountDeps
|
|
71
85
|
};
|
|
72
86
|
}
|
|
@@ -74,7 +88,9 @@ function createRouteBuilder(state) {
|
|
|
74
88
|
}
|
|
75
89
|
var EMPTY_BUILDER = {
|
|
76
90
|
errorComponent: undefined,
|
|
91
|
+
loaderDeps: undefined,
|
|
77
92
|
notFoundComponent: undefined,
|
|
93
|
+
pending: undefined,
|
|
78
94
|
remountDeps: undefined
|
|
79
95
|
};
|
|
80
96
|
function defineRoute(_id) {
|
|
@@ -1340,6 +1356,7 @@ export {
|
|
|
1340
1356
|
updateHotComponent,
|
|
1341
1357
|
useAsyncError,
|
|
1342
1358
|
useAsyncValue,
|
|
1359
|
+
useInfiniteQuery2 as useInfiniteQuery,
|
|
1343
1360
|
useMutation,
|
|
1344
1361
|
useQuery2 as useQuery
|
|
1345
1362
|
};
|
package/dist/define-route.d.ts
CHANGED
|
@@ -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;
|