@lexriver/dome 1.5.8 → 1.5.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.
- package/README.md +5 -1
- package/out/DomeRouter.d.ts +1 -1
- package/package.json +1 -1
- package/src/DomeRouter.ts +1 -1
package/README.md
CHANGED
|
@@ -1506,7 +1506,11 @@ Parameters:
|
|
|
1506
1506
|
|
|
1507
1507
|
Where `RouteAction` type is:
|
|
1508
1508
|
```typescript
|
|
1509
|
-
export type RouteAction = (
|
|
1509
|
+
export type RouteAction = (
|
|
1510
|
+
params:{[key:string]:string}, // parameters from url
|
|
1511
|
+
url:string,
|
|
1512
|
+
scrollToPreviousPositionAsync:()=>Promise<void> // this function can be called to scroll to previous page position
|
|
1513
|
+
) => void|Promise<void>
|
|
1510
1514
|
```
|
|
1511
1515
|
|
|
1512
1516
|
example:
|
package/out/DomeRouter.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare type RouteAction = (params: {
|
|
2
2
|
[key: string]: string;
|
|
3
|
-
}, url: string,
|
|
3
|
+
}, url: string, scrollToPreviousPositionAsync: () => Promise<void>) => void | Promise<void>;
|
|
4
4
|
export declare module DomeRouter {
|
|
5
5
|
let maxHistoryUrlsCount: number;
|
|
6
6
|
function navigate(url: string): void;
|
package/package.json
CHANGED
package/src/DomeRouter.ts
CHANGED