@tanstack/router-core 1.120.8 → 1.120.9
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NavigateOptions, ToOptions } from './link.cjs';
|
|
2
2
|
import { ParsedLocation } from './location.cjs';
|
|
3
3
|
import { RoutePaths } from './routeInfo.cjs';
|
|
4
|
-
import {
|
|
4
|
+
import { RegisteredRouter, ViewTransitionOptions } from './router.cjs';
|
|
5
5
|
export interface MatchLocation {
|
|
6
6
|
to?: string | number | null;
|
|
7
7
|
fuzzy?: boolean;
|
|
@@ -20,7 +20,7 @@ export interface CommitLocationOptions {
|
|
|
20
20
|
ignoreBlocker?: boolean;
|
|
21
21
|
}
|
|
22
22
|
export type NavigateFn = <TRouter extends RegisteredRouter, TTo extends string | undefined, TFrom extends RoutePaths<TRouter['routeTree']> | string = string, TMaskFrom extends RoutePaths<TRouter['routeTree']> | string = TFrom, TMaskTo extends string = ''>(opts: NavigateOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo>) => Promise<void> | void;
|
|
23
|
-
export type BuildLocationFn = <TRouter extends
|
|
23
|
+
export type BuildLocationFn = <TRouter extends RegisteredRouter, TTo extends string | undefined, TFrom extends RoutePaths<TRouter['routeTree']> | string = string, TMaskFrom extends RoutePaths<TRouter['routeTree']> | string = TFrom, TMaskTo extends string = ''>(opts: ToOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & {
|
|
24
24
|
leaveParams?: boolean;
|
|
25
25
|
_includeValidateSearch?: boolean;
|
|
26
26
|
}) => ParsedLocation;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NavigateOptions, ToOptions } from './link.js';
|
|
2
2
|
import { ParsedLocation } from './location.js';
|
|
3
3
|
import { RoutePaths } from './routeInfo.js';
|
|
4
|
-
import {
|
|
4
|
+
import { RegisteredRouter, ViewTransitionOptions } from './router.js';
|
|
5
5
|
export interface MatchLocation {
|
|
6
6
|
to?: string | number | null;
|
|
7
7
|
fuzzy?: boolean;
|
|
@@ -20,7 +20,7 @@ export interface CommitLocationOptions {
|
|
|
20
20
|
ignoreBlocker?: boolean;
|
|
21
21
|
}
|
|
22
22
|
export type NavigateFn = <TRouter extends RegisteredRouter, TTo extends string | undefined, TFrom extends RoutePaths<TRouter['routeTree']> | string = string, TMaskFrom extends RoutePaths<TRouter['routeTree']> | string = TFrom, TMaskTo extends string = ''>(opts: NavigateOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo>) => Promise<void> | void;
|
|
23
|
-
export type BuildLocationFn = <TRouter extends
|
|
23
|
+
export type BuildLocationFn = <TRouter extends RegisteredRouter, TTo extends string | undefined, TFrom extends RoutePaths<TRouter['routeTree']> | string = string, TMaskFrom extends RoutePaths<TRouter['routeTree']> | string = TFrom, TMaskTo extends string = ''>(opts: ToOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & {
|
|
24
24
|
leaveParams?: boolean;
|
|
25
25
|
_includeValidateSearch?: boolean;
|
|
26
26
|
}) => ParsedLocation;
|
package/package.json
CHANGED
package/src/RouterProvider.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { NavigateOptions, ToOptions } from './link'
|
|
2
2
|
import type { ParsedLocation } from './location'
|
|
3
3
|
import type { RoutePaths } from './routeInfo'
|
|
4
|
-
import type {
|
|
5
|
-
AnyRouter,
|
|
6
|
-
RegisteredRouter,
|
|
7
|
-
ViewTransitionOptions,
|
|
8
|
-
} from './router'
|
|
4
|
+
import type { RegisteredRouter, ViewTransitionOptions } from './router'
|
|
9
5
|
|
|
10
6
|
export interface MatchLocation {
|
|
11
7
|
to?: string | number | null
|
|
@@ -37,7 +33,7 @@ export type NavigateFn = <
|
|
|
37
33
|
) => Promise<void> | void
|
|
38
34
|
|
|
39
35
|
export type BuildLocationFn = <
|
|
40
|
-
TRouter extends
|
|
36
|
+
TRouter extends RegisteredRouter,
|
|
41
37
|
TTo extends string | undefined,
|
|
42
38
|
TFrom extends RoutePaths<TRouter['routeTree']> | string = string,
|
|
43
39
|
TMaskFrom extends RoutePaths<TRouter['routeTree']> | string = TFrom,
|