mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 04:14:55 +02:00
fix(cli): erase routed definition union at dispatch
This commit is contained in:
@@ -20,9 +20,9 @@ function createCommandLoadPlugins(commandPath: readonly string[]): (argv: string
|
||||
};
|
||||
}
|
||||
|
||||
function createParsedRoute<TArgs>(params: {
|
||||
function createParsedRoute(params: {
|
||||
entry: CliCommandCatalogEntry;
|
||||
definition: RoutedCommandDefinition<TArgs>;
|
||||
definition: RoutedCommandDefinition;
|
||||
}): RouteSpec {
|
||||
return {
|
||||
match: (path) =>
|
||||
@@ -51,6 +51,6 @@ export const routedCommands: RouteSpec[] = cliCommandCatalog
|
||||
.map((entry) =>
|
||||
createParsedRoute({
|
||||
entry,
|
||||
definition: routedCommandDefinitions[entry.route.id],
|
||||
definition: routedCommandDefinitions[entry.route.id] as RoutedCommandDefinition,
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user