dochub-sdk 0.1.232 → 0.1.234

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,4 +1,4 @@
1
- import { Route } from 'vue-router';
1
+ import { Route, RouteConfig } from 'vue-router';
2
2
 
3
3
  export enum DocHubNavigateCommands {
4
4
  back = '$_back_$',
@@ -20,7 +20,7 @@ export type DocHubLocationWatcher = (location: URL) => void;
20
20
  /**
21
21
  * Обработчик middleware роутера
22
22
  */
23
- export type DocHubRouterMiddlewareHandle = () => void;
23
+ export type DocHubRouterMiddlewareHandle = () => Promise<void>;
24
24
 
25
25
  /**
26
26
  * Интерфейс middleware
@@ -32,7 +32,7 @@ export interface IDocHubRouterMiddleware {
32
32
  /**
33
33
  * Интерфейс роута
34
34
  */
35
- export interface IDocHubRouterRoute extends Route {};
35
+ export type IDocHubRouterRoute = RouteConfig;
36
36
 
37
37
  /**
38
38
  * Интерфейс роутера
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.232",
3
+ "version": "0.1.234",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",