@kitbag/router 0.22.0 → 0.22.1
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/components/routerLink.d.ts +2 -2
- package/dist/errors/invalidRouteParamValueError.d.ts +11 -0
- package/dist/kitbag-router.js +2107 -2016
- package/dist/kitbag-router.umd.cjs +3 -3
- package/dist/main.d.ts +2 -0
- package/dist/services/combineUrl.d.ts +4 -0
- package/dist/services/createResolvedRoute.d.ts +1 -1
- package/dist/services/createUrl.d.ts +2 -0
- package/dist/services/getMatchesForUrl.d.ts +4 -2
- package/dist/services/getRoutesForRouter.d.ts +7 -2
- package/dist/services/routeRegex.d.ts +17 -12
- package/dist/services/urlParser.d.ts +17 -1
- package/dist/services/zod.d.ts +1 -1
- package/dist/types/createRouteOptions.d.ts +9 -12
- package/dist/types/params.d.ts +8 -36
- package/dist/types/redirects.d.ts +4 -4
- package/dist/types/resolved.d.ts +10 -10
- package/dist/types/route.d.ts +4 -24
- package/dist/types/routeWithParams.d.ts +2 -2
- package/dist/types/router.d.ts +6 -0
- package/dist/types/routerRoute.d.ts +1 -1
- package/dist/types/url.d.ts +86 -0
- package/dist/types/urlString.d.ts +0 -9
- package/dist/utilities/testHelpers.d.ts +1520 -298
- package/dist/utilities/trailingSlashes.d.ts +8 -0
- package/package.json +6 -5
- package/dist/services/createResolvedRouteForUrl.d.ts +0 -3
- package/dist/services/paramValidation.d.ts +0 -4
- package/dist/services/routeMatchRules.d.ts +0 -5
- package/dist/services/routeMatchScore.d.ts +0 -7
- package/dist/services/urlAssembly.d.ts +0 -10
- package/dist/services/urlAssembly.spec.d.ts +0 -1
- package/dist/services/urlCombine.d.ts +0 -2
- package/dist/services/urlCombine.spec.d.ts +0 -1
- package/dist/services/urlCreator.d.ts +0 -2
- package/dist/services/urlCreator.spec.d.ts +0 -1
- package/dist/types/routeMatchRule.d.ts +0 -2
- /package/dist/services/{createResolvedRouteForUrl.browser.spec.d.ts → combineUrl.spec.d.ts} +0 -0
- /package/dist/services/{paramValidation.spec.d.ts → createResolvedRoute.spec.d.ts} +0 -0
- /package/dist/services/{routeMatchRules.spec.d.ts → createUrl.spec.d.ts} +0 -0
- /package/dist/{services/routeMatchScore.spec.d.ts → utilities/trailingSlashes.spec.d.ts} +0 -0
|
@@ -19,13 +19,13 @@ export declare function createRouterLink<TRouter extends Router>(routerKey: Inje
|
|
|
19
19
|
matched: import('../main').CreatedRouteOptions;
|
|
20
20
|
matches: import('../main').CreatedRouteOptions[];
|
|
21
21
|
name: string;
|
|
22
|
-
query: URLSearchParams;
|
|
23
|
-
hash: string;
|
|
24
22
|
params: {
|
|
25
23
|
[x: string]: unknown;
|
|
26
24
|
};
|
|
27
25
|
state: import('../types/state').ExtractRouteStateParamsAsOptional<Record<string, import('../main').Param>>;
|
|
28
26
|
href: UrlString;
|
|
27
|
+
query: URLSearchParams;
|
|
28
|
+
hash: string;
|
|
29
29
|
hooks: import('../models/hooks').Hooks[];
|
|
30
30
|
}> | UrlString | ToCallback<TRouter>;
|
|
31
31
|
prefetch?: import('../main').PrefetchConfig;
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
+
import { Param } from '../types/paramTypes';
|
|
2
|
+
export type InvalidRouteParamValueErrorContext = {
|
|
3
|
+
message?: string;
|
|
4
|
+
param?: Param;
|
|
5
|
+
value?: unknown;
|
|
6
|
+
isOptional?: boolean;
|
|
7
|
+
isGetter?: boolean;
|
|
8
|
+
isSetter?: boolean;
|
|
9
|
+
};
|
|
1
10
|
export declare class InvalidRouteParamValueError extends Error {
|
|
11
|
+
context: InvalidRouteParamValueErrorContext;
|
|
12
|
+
constructor(context?: InvalidRouteParamValueErrorContext);
|
|
2
13
|
}
|