@argon-router/react 0.1.0 → 0.1.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/index.d.ts +9 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,11 @@ import { Router } from '@argon-router/core';
|
|
|
7
7
|
|
|
8
8
|
declare type AnchorProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
|
|
9
9
|
|
|
10
|
+
declare type BaseLinkProps<Params> = {
|
|
11
|
+
to: Route<Params>;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
} & AnchorProps;
|
|
14
|
+
|
|
10
15
|
export declare const createRoutesView: (props: CreateRoutesViewProps) => () => JSX_2.Element | null;
|
|
11
16
|
|
|
12
17
|
declare interface CreateRoutesViewProps {
|
|
@@ -26,11 +31,11 @@ declare interface CreateRouteViewProps {
|
|
|
26
31
|
|
|
27
32
|
export declare function Link<Params = void>(props: LinkProps<Params>): JSX_2.Element;
|
|
28
33
|
|
|
29
|
-
declare
|
|
30
|
-
|
|
34
|
+
declare type LinkProps<Params> = Params extends Record<string, never> ? BaseLinkProps<Params> & {
|
|
35
|
+
params?: Params;
|
|
36
|
+
} : BaseLinkProps<Params> & {
|
|
31
37
|
params: Params;
|
|
32
|
-
|
|
33
|
-
}
|
|
38
|
+
};
|
|
34
39
|
|
|
35
40
|
export declare const RouterProvider: (props: RouterProviderProps) => JSX_2.Element;
|
|
36
41
|
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
7
7
|
"private": false,
|
|
8
|
-
"version": "0.1.
|
|
8
|
+
"version": "0.1.1",
|
|
9
9
|
"description": "React bindings for argon router",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"effector",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"effector-react": "^23.2.1",
|
|
61
61
|
"react": "^18.2.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "738d08af7dede9d39220c03153494bc467ffbeb7"
|
|
64
64
|
}
|