@kevisual/router 0.1.0 → 0.1.2

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.
@@ -147,14 +147,6 @@ type RouteOpts<U = {}, T = SimpleObject> = {
147
147
  metadata?: T;
148
148
  middleware?: RouteMiddleware[];
149
149
  type?: 'route' | 'middleware' | 'compound';
150
- /**
151
- * $#$ will be used to split path and key
152
- */
153
- idUsePath?: boolean;
154
- /**
155
- * id 合并的分隔符,默认为 $#$
156
- */
157
- delimiter?: string;
158
150
  isDebug?: boolean;
159
151
  };
160
152
  type DefineRouteOpts = Omit<RouteOpts, 'idUsePath' | 'nextRoute'>;
@@ -805,14 +797,20 @@ declare const groupByPath: (routes: App["routes"]) => Record<string, Route<Simpl
805
797
  declare const parseArgs: (args: string) => any;
806
798
  declare const parseDescription: (route: App["routes"][number]) => string;
807
799
  declare const createCommand: (opts: {
808
- app: App;
800
+ app: any;
809
801
  program: Command;
810
802
  }) => void;
811
803
  declare const parse: (opts: {
812
- app: QueryRouterServer;
804
+ app: any;
813
805
  description?: string;
814
806
  parse?: boolean;
807
+ version?: string;
815
808
  program?: Command;
816
- }) => void;
809
+ remote?: {
810
+ token?: string;
811
+ username?: string;
812
+ id?: string;
813
+ };
814
+ }) => Promise<void>;
817
815
 
818
816
  export { createCommand, groupByPath, parse, parseArgs, parseDescription };