@tarojs/router 3.5.0-beta.3 → 3.5.0-beta.6

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/types/router.d.ts CHANGED
@@ -1,32 +1,30 @@
1
- declare module '@tarojs/router/types/router' {
2
- import { AppConfig, PageConfig } from '@tarojs/taro'
3
- import { IH5RouterConfig } from '@tarojs/taro/types/compile'
1
+ import { AppConfig, PageConfig } from '@tarojs/taro'
2
+ import { IH5RouterConfig } from '@tarojs/taro/types/compile'
4
3
 
5
- interface Route extends PageConfig {
6
- path?: string
7
- load?: () => Promise<any>
8
- }
4
+ export interface Route extends PageConfig {
5
+ path?: string
6
+ load?: () => Promise<any>
7
+ }
9
8
 
10
- interface Router {
11
- mode: IH5RouterConfig['mode']
12
- basename: string
13
- customRoutes?: Record<string, string | string[]>
14
- pathname: string
15
- forcePath?: string
16
- }
9
+ export interface Router {
10
+ mode: IH5RouterConfig['mode']
11
+ basename: string
12
+ customRoutes?: Record<string, string | string[]>
13
+ pathname: string
14
+ forcePath?: string
15
+ }
17
16
 
18
- interface SpaRouterConfig extends AppConfig {
19
- routes: Route[]
20
- router: Router
21
- // 下拉刷新组件
22
- PullDownRefresh?: any
23
- }
17
+ export interface SpaRouterConfig extends AppConfig {
18
+ routes: Route[]
19
+ router: Router
20
+ // 下拉刷新组件
21
+ PullDownRefresh?: any
22
+ }
24
23
 
25
- interface MpaRouterConfig extends AppConfig {
26
- route: Route,
27
- pageName: string
28
- router: Router
29
- // 下拉刷新组件
30
- PullDownRefresh?: any
31
- }
24
+ export interface MpaRouterConfig extends AppConfig {
25
+ route: Route,
26
+ pageName: string
27
+ router: Router
28
+ // 下拉刷新组件
29
+ PullDownRefresh?: any
32
30
  }