@dodoex/widgets 3.0.0-taiko.8 → 3.0.0-taiko.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.
Files changed (83) hide show
  1. package/dist/cjs/components/AddTokenToMetamask.d.ts +9 -0
  2. package/dist/cjs/components/CardWidgets.d.ts +50 -0
  3. package/dist/cjs/components/LoadMore.d.ts +9 -0
  4. package/dist/cjs/components/Message/Countdown.d.ts +12 -0
  5. package/dist/cjs/components/Message/index.d.ts +2 -0
  6. package/dist/cjs/components/Select.d.ts +16 -0
  7. package/dist/cjs/components/SelectChain.d.ts +2 -1
  8. package/dist/cjs/components/Swap/SwapOrderHistory/PriceWithToggle.d.ts +11 -0
  9. package/dist/cjs/components/Swap/SwapOrderHistory/RoutingCard.d.ts +8 -0
  10. package/dist/cjs/components/Swap/SwapOrderHistory/RoutingVision.d.ts +26 -0
  11. package/dist/cjs/components/Swap/SwapOrderHistory/SameOrderCard.d.ts +6 -0
  12. package/dist/cjs/components/Swap/SwapOrderHistory/index.d.ts +5 -0
  13. package/dist/cjs/components/Swap/components/Dialog.d.ts +3 -1
  14. package/dist/cjs/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +2 -1
  15. package/dist/cjs/components/Swap/components/TokenCard/index.d.ts +2 -1
  16. package/dist/cjs/components/Table.d.ts +7 -0
  17. package/dist/cjs/components/TokenPicker/index.d.ts +3 -1
  18. package/dist/cjs/helper-AEVpcN4Q.cjs +1 -0
  19. package/dist/cjs/helper-B5-dopL3.cjs +1 -0
  20. package/dist/cjs/helper-ZnKsWZwe.cjs +1 -0
  21. package/dist/cjs/hooks/Submission/useSubmissionStatusColor.d.ts +18 -0
  22. package/dist/cjs/hooks/Swap/useTradeSwapOrderList.d.ts +242 -0
  23. package/dist/cjs/hooks/contract/wallet.d.ts +9 -0
  24. package/dist/cjs/hooks/useMessageState.d.ts +17 -0
  25. package/dist/cjs/hooks/useRouteVisionData.d.ts +15 -0
  26. package/dist/cjs/index-B8At_46W.cjs +12 -0
  27. package/dist/cjs/index-BINVus8-.cjs +12 -0
  28. package/dist/cjs/index-BVDJ3tMF.cjs +78 -0
  29. package/dist/cjs/index-BkOUMfo-.cjs +31 -0
  30. package/dist/cjs/index-CNZgGvQd.cjs +78 -0
  31. package/dist/cjs/index-CVUcICkM.cjs +31 -0
  32. package/dist/cjs/index-Db-LwHYQ.cjs +78 -0
  33. package/dist/cjs/index-a33funYe.cjs +53 -0
  34. package/dist/cjs/index-sZhViBfs.cjs +12 -0
  35. package/dist/cjs/index.cjs +1 -1
  36. package/dist/cjs/index.d.ts +2 -0
  37. package/dist/cjs/locales/en-US.js +1 -1
  38. package/dist/cjs/locales/zh-CN.js +1 -1
  39. package/dist/cjs/utils/formatter.d.ts +4 -2
  40. package/dist/cjs/utils/time.d.ts +3 -0
  41. package/dist/cjs/widgets/PoolWidget/PoolOperate/index.d.ts +3 -2
  42. package/dist/components/AddTokenToMetamask.d.ts +9 -0
  43. package/dist/components/CardWidgets.d.ts +50 -0
  44. package/dist/components/LoadMore.d.ts +9 -0
  45. package/dist/components/Message/Countdown.d.ts +12 -0
  46. package/dist/components/Message/index.d.ts +2 -0
  47. package/dist/components/Select.d.ts +16 -0
  48. package/dist/components/SelectChain.d.ts +2 -1
  49. package/dist/components/Swap/SwapOrderHistory/PriceWithToggle.d.ts +11 -0
  50. package/dist/components/Swap/SwapOrderHistory/RoutingCard.d.ts +8 -0
  51. package/dist/components/Swap/SwapOrderHistory/RoutingVision.d.ts +26 -0
  52. package/dist/components/Swap/SwapOrderHistory/SameOrderCard.d.ts +6 -0
  53. package/dist/components/Swap/SwapOrderHistory/index.d.ts +5 -0
  54. package/dist/components/Swap/components/Dialog.d.ts +3 -1
  55. package/dist/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +2 -1
  56. package/dist/components/Swap/components/TokenCard/index.d.ts +2 -1
  57. package/dist/components/Table.d.ts +7 -0
  58. package/dist/components/TokenPicker/index.d.ts +3 -1
  59. package/dist/helper-CPlSAYZj.js +1 -0
  60. package/dist/helper-DMZOVdOe.js +1 -0
  61. package/dist/helper-GyI_fKL4.js +1 -0
  62. package/dist/hooks/Submission/useSubmissionStatusColor.d.ts +18 -0
  63. package/dist/hooks/Swap/useTradeSwapOrderList.d.ts +242 -0
  64. package/dist/hooks/contract/wallet.d.ts +9 -0
  65. package/dist/hooks/useMessageState.d.ts +17 -0
  66. package/dist/hooks/useRouteVisionData.d.ts +15 -0
  67. package/dist/index-BfXWBgGk.js +31 -0
  68. package/dist/index-Chj0rE9p.js +78 -0
  69. package/dist/index-DA7GqWGm.js +53 -0
  70. package/dist/index-DGhFswSA.js +12 -0
  71. package/dist/index-Dj2wp0Y6.js +78 -0
  72. package/dist/index-DjoVE6wb.js +12 -0
  73. package/dist/index-RpeAOdf7.js +12 -0
  74. package/dist/index-W7Vt38od.js +31 -0
  75. package/dist/index-YXd3DB_m.js +78 -0
  76. package/dist/index.d.ts +2 -0
  77. package/dist/index.js +1 -1
  78. package/dist/locales/en-US.js +1 -1
  79. package/dist/locales/zh-CN.js +1 -1
  80. package/dist/utils/formatter.d.ts +4 -2
  81. package/dist/utils/time.d.ts +3 -0
  82. package/dist/widgets/PoolWidget/PoolOperate/index.d.ts +3 -2
  83. package/package.json +4 -2
@@ -0,0 +1,18 @@
1
+ export declare enum StateText {
2
+ Running = "pending",
3
+ Success = "success",
4
+ Failed = "failed",
5
+ /** Accelerated or canceled tx warning handling */
6
+ Warning = "reset"
7
+ }
8
+ export declare function useSubmissionStatusColor({ status, stateTextMap, }: {
9
+ status: string | number;
10
+ stateTextMap?: {
11
+ [key: string | number]: StateText;
12
+ };
13
+ }): {
14
+ state: StateText;
15
+ statusText: string;
16
+ statusColor: string;
17
+ statusAlphaColor: number | undefined;
18
+ };
@@ -0,0 +1,242 @@
1
+ import BigNumber from 'bignumber.js';
2
+ import { TokenInfo } from '../Token';
3
+ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
4
+ account: string | undefined;
5
+ chainId?: number;
6
+ limit?: number;
7
+ }): {
8
+ orderList: {
9
+ hash: string;
10
+ fromToken: TokenInfo;
11
+ toToken: TokenInfo;
12
+ fromAmount: BigNumber | null;
13
+ toAmount: string;
14
+ minAmount: string;
15
+ fromTokenPrice: string;
16
+ toTokenPrice: string;
17
+ createdAt: string;
18
+ routeData: any;
19
+ safeTxHash: string | undefined;
20
+ safeTxUrl: string;
21
+ status: string;
22
+ transactionHash: string;
23
+ }[];
24
+ data: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>;
25
+ error: Error;
26
+ isError: true;
27
+ isPending: false;
28
+ isLoading: false;
29
+ isLoadingError: false;
30
+ isRefetchError: true;
31
+ isSuccess: false;
32
+ status: "error";
33
+ fetchNextPage: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a3 | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").am<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
34
+ fetchPreviousPage: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a4 | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").am<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
35
+ hasNextPage: boolean;
36
+ hasPreviousPage: boolean;
37
+ isFetchingNextPage: boolean;
38
+ isFetchingPreviousPage: boolean;
39
+ dataUpdatedAt: number;
40
+ errorUpdatedAt: number;
41
+ failureCount: number;
42
+ failureReason: Error | null;
43
+ errorUpdateCount: number;
44
+ isFetched: boolean;
45
+ isFetchedAfterMount: boolean;
46
+ isFetching: boolean;
47
+ isInitialLoading: boolean;
48
+ isPaused: boolean;
49
+ isPlaceholderData: boolean;
50
+ isRefetching: boolean;
51
+ isStale: boolean;
52
+ refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
53
+ fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
54
+ } | {
55
+ orderList: {
56
+ hash: string;
57
+ fromToken: TokenInfo;
58
+ toToken: TokenInfo;
59
+ fromAmount: BigNumber | null;
60
+ toAmount: string;
61
+ minAmount: string;
62
+ fromTokenPrice: string;
63
+ toTokenPrice: string;
64
+ createdAt: string;
65
+ routeData: any;
66
+ safeTxHash: string | undefined;
67
+ safeTxUrl: string;
68
+ status: string;
69
+ transactionHash: string;
70
+ }[];
71
+ data: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>;
72
+ error: null;
73
+ isError: false;
74
+ isPending: false;
75
+ isLoading: false;
76
+ isLoadingError: false;
77
+ isRefetchError: false;
78
+ isSuccess: true;
79
+ status: "success";
80
+ fetchNextPage: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a3 | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").am<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
81
+ fetchPreviousPage: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a4 | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").am<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
82
+ hasNextPage: boolean;
83
+ hasPreviousPage: boolean;
84
+ isFetchingNextPage: boolean;
85
+ isFetchingPreviousPage: boolean;
86
+ dataUpdatedAt: number;
87
+ errorUpdatedAt: number;
88
+ failureCount: number;
89
+ failureReason: Error | null;
90
+ errorUpdateCount: number;
91
+ isFetched: boolean;
92
+ isFetchedAfterMount: boolean;
93
+ isFetching: boolean;
94
+ isInitialLoading: boolean;
95
+ isPaused: boolean;
96
+ isPlaceholderData: boolean;
97
+ isRefetching: boolean;
98
+ isStale: boolean;
99
+ refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
100
+ fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
101
+ } | {
102
+ orderList: {
103
+ hash: string;
104
+ fromToken: TokenInfo;
105
+ toToken: TokenInfo;
106
+ fromAmount: BigNumber | null;
107
+ toAmount: string;
108
+ minAmount: string;
109
+ fromTokenPrice: string;
110
+ toTokenPrice: string;
111
+ createdAt: string;
112
+ routeData: any;
113
+ safeTxHash: string | undefined;
114
+ safeTxUrl: string;
115
+ status: string;
116
+ transactionHash: string;
117
+ }[];
118
+ data: undefined;
119
+ error: Error;
120
+ isError: true;
121
+ isPending: false;
122
+ isLoading: false;
123
+ isLoadingError: true;
124
+ isRefetchError: false;
125
+ isSuccess: false;
126
+ status: "error";
127
+ fetchNextPage: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a3 | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").am<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
128
+ fetchPreviousPage: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a4 | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").am<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
129
+ hasNextPage: boolean;
130
+ hasPreviousPage: boolean;
131
+ isFetchingNextPage: boolean;
132
+ isFetchingPreviousPage: boolean;
133
+ dataUpdatedAt: number;
134
+ errorUpdatedAt: number;
135
+ failureCount: number;
136
+ failureReason: Error | null;
137
+ errorUpdateCount: number;
138
+ isFetched: boolean;
139
+ isFetchedAfterMount: boolean;
140
+ isFetching: boolean;
141
+ isInitialLoading: boolean;
142
+ isPaused: boolean;
143
+ isPlaceholderData: boolean;
144
+ isRefetching: boolean;
145
+ isStale: boolean;
146
+ refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
147
+ fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
148
+ } | {
149
+ orderList: {
150
+ hash: string;
151
+ fromToken: TokenInfo;
152
+ toToken: TokenInfo;
153
+ fromAmount: BigNumber | null;
154
+ toAmount: string;
155
+ minAmount: string;
156
+ fromTokenPrice: string;
157
+ toTokenPrice: string;
158
+ createdAt: string;
159
+ routeData: any;
160
+ safeTxHash: string | undefined;
161
+ safeTxUrl: string;
162
+ status: string;
163
+ transactionHash: string;
164
+ }[];
165
+ data: undefined;
166
+ error: null;
167
+ isError: false;
168
+ isPending: true;
169
+ isLoading: true;
170
+ isLoadingError: false;
171
+ isRefetchError: false;
172
+ isSuccess: false;
173
+ status: "pending";
174
+ fetchNextPage: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a3 | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").am<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
175
+ fetchPreviousPage: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a4 | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").am<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
176
+ hasNextPage: boolean;
177
+ hasPreviousPage: boolean;
178
+ isFetchingNextPage: boolean;
179
+ isFetchingPreviousPage: boolean;
180
+ dataUpdatedAt: number;
181
+ errorUpdatedAt: number;
182
+ failureCount: number;
183
+ failureReason: Error | null;
184
+ errorUpdateCount: number;
185
+ isFetched: boolean;
186
+ isFetchedAfterMount: boolean;
187
+ isFetching: boolean;
188
+ isInitialLoading: boolean;
189
+ isPaused: boolean;
190
+ isPlaceholderData: boolean;
191
+ isRefetching: boolean;
192
+ isStale: boolean;
193
+ refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
194
+ fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
195
+ } | {
196
+ orderList: {
197
+ hash: string;
198
+ fromToken: TokenInfo;
199
+ toToken: TokenInfo;
200
+ fromAmount: BigNumber | null;
201
+ toAmount: string;
202
+ minAmount: string;
203
+ fromTokenPrice: string;
204
+ toTokenPrice: string;
205
+ createdAt: string;
206
+ routeData: any;
207
+ safeTxHash: string | undefined;
208
+ safeTxUrl: string;
209
+ status: string;
210
+ transactionHash: string;
211
+ }[];
212
+ data: undefined;
213
+ error: null;
214
+ isError: false;
215
+ isPending: true;
216
+ isLoadingError: false;
217
+ isRefetchError: false;
218
+ isSuccess: false;
219
+ status: "pending";
220
+ fetchNextPage: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a3 | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").am<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
221
+ fetchPreviousPage: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a4 | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").am<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
222
+ hasNextPage: boolean;
223
+ hasPreviousPage: boolean;
224
+ isFetchingNextPage: boolean;
225
+ isFetchingPreviousPage: boolean;
226
+ dataUpdatedAt: number;
227
+ errorUpdatedAt: number;
228
+ failureCount: number;
229
+ failureReason: Error | null;
230
+ errorUpdateCount: number;
231
+ isFetched: boolean;
232
+ isFetchedAfterMount: boolean;
233
+ isFetching: boolean;
234
+ isLoading: boolean;
235
+ isInitialLoading: boolean;
236
+ isPaused: boolean;
237
+ isPlaceholderData: boolean;
238
+ isRefetching: boolean;
239
+ isStale: boolean;
240
+ refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").A<import("@dodoex/api/dist/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
241
+ fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
242
+ };
@@ -2,6 +2,7 @@ import { JsonRpcProvider } from '@ethersproject/providers';
2
2
  import type { TransactionRequest } from '@ethersproject/abstract-provider';
3
3
  import { BigNumber as EthersBigNumber } from '@ethersproject/bignumber';
4
4
  import BigNumber from 'bignumber.js';
5
+ import { TokenInfo } from '../Token';
5
6
  export declare type Deferrable<T> = {
6
7
  [K in keyof T]: T[K] | Promise<T[K]>;
7
8
  };
@@ -14,3 +15,11 @@ export declare const getEstimateGas: (params: any, provider: JsonRpcProvider) =>
14
15
  export declare const getGasPrice: (provider: JsonRpcProvider) => Promise<EthersBigNumber | null>;
15
16
  export declare const sendTransaction: (params: Deferrable<TransactionRequest>, provider: JsonRpcProvider) => Promise<import("@ethersproject/abstract-provider").TransactionResponse>;
16
17
  export declare const approve: (tokenAddress: string, accountAddress: string, contractAddress: string, allowance: BigNumber, provider: JsonRpcProvider) => Promise<import("@ethersproject/abstract-provider").TransactionResponse>;
18
+ /**
19
+ * Add custom token to metamask
20
+ * https://docs.metamask.io/guide/registering-your-token.html#registering-tokens-with-users
21
+ */
22
+ export declare function registerTokenWithMetamask(provider: JsonRpcProvider | undefined, token: TokenInfo): Promise<{
23
+ result: boolean;
24
+ failMsg?: string;
25
+ }>;
@@ -0,0 +1,17 @@
1
+ interface Notify {
2
+ message: string;
3
+ type: 'success' | 'error' | 'warning';
4
+ timeout?: number;
5
+ content?: string;
6
+ link?: {
7
+ text: string;
8
+ outerLink?: string;
9
+ };
10
+ }
11
+ interface MessageState {
12
+ notify: Notify | null;
13
+ toast: (notify: Notify) => void;
14
+ close: () => void;
15
+ }
16
+ export declare const useMessageState: import("zustand").UseBoundStore<import("zustand").StoreApi<MessageState>>;
17
+ export {};
@@ -0,0 +1,15 @@
1
+ export declare type MidPathType = {
2
+ fromToken: string;
3
+ toToken: string;
4
+ chainId: number;
5
+ poolDetails: Map<string, {
6
+ poolPart: string;
7
+ poolAddress: string | null;
8
+ }[]>;
9
+ };
10
+ export declare function useRouteVisionData({ rawRouteData, chainId, }: {
11
+ rawRouteData: string;
12
+ chainId: number;
13
+ }): {
14
+ routeData: MidPathType[];
15
+ };