mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-14 02:31:24 +00:00
fix(check): repair latest command and stream type drift
This commit is contained in:
@@ -35,7 +35,7 @@ function createParsedRoute(params: {
|
||||
if (!args) {
|
||||
return false;
|
||||
}
|
||||
await params.definition.runParsedArgs(args);
|
||||
await params.definition.runParsedArgs(args as never);
|
||||
return true;
|
||||
},
|
||||
};
|
||||
|
||||
@@ -20,7 +20,10 @@ export type RoutedCommandDefinition<TParse extends RouteArgParser<unknown>> = {
|
||||
runParsedArgs: (args: ParsedRouteArgs<TParse>) => Promise<void>;
|
||||
};
|
||||
|
||||
export type AnyRoutedCommandDefinition = RoutedCommandDefinition<RouteArgParser<unknown>>;
|
||||
export type AnyRoutedCommandDefinition = {
|
||||
parseArgs: RouteArgParser<unknown>;
|
||||
runParsedArgs: (args: never) => Promise<void>;
|
||||
};
|
||||
|
||||
function defineRoutedCommand<TParse extends RouteArgParser<unknown>>(
|
||||
definition: RoutedCommandDefinition<TParse>,
|
||||
|
||||
Reference in New Issue
Block a user