@kevisual/router 0.0.70 → 0.0.72

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.
@@ -32,6 +32,9 @@ type RouteContext<T = {
32
32
  query?: {
33
33
  [key: string]: any;
34
34
  };
35
+ args?: {
36
+ [key: string]: any;
37
+ };
35
38
  /** return body */
36
39
  body?: number | string | Object;
37
40
  forward?: (response: {
@@ -167,7 +170,7 @@ declare class Route<U = {
167
170
  define<T extends {
168
171
  [key: string]: any;
169
172
  } = RouterContextT>(path: string, key: string, fn: Run<T & U>): this;
170
- update(opts: DefineRouteOpts, checkList?: string[]): this;
173
+ update(opts: DefineRouteOpts, onlyUpdateList?: string[]): this;
171
174
  addTo(router: QueryRouter | {
172
175
  add: (route: Route) => void;
173
176
  [key: string]: any;
@@ -205,7 +208,7 @@ declare class QueryRouter {
205
208
  * remove route by id
206
209
  * @param uniqueId
207
210
  */
208
- removeById(unique: string): void;
211
+ removeById(uniqueId: string): void;
209
212
  /**
210
213
  * 执行route
211
214
  * @param path