diff --git a/src/core/contracts/module-manager.ts b/src/core/contracts/module-manager.ts index dca3dad8..5dbeaee4 100644 --- a/src/core/contracts/module-manager.ts +++ b/src/core/contracts/module-manager.ts @@ -19,7 +19,14 @@ export interface ModuleManager extends MetadataAccess { get(id: string): Module | undefined; set(id: string, path: Module): void; + /** + * @deprecated + */ getPublishableCommands(): CommandModule[]; + + /* + * @deprecated + */ getByNameCommandType( name: string, commandType: T, diff --git a/src/handlers/dispatchers.ts b/src/handlers/dispatchers.ts index 1c93b3ce..8e4eb10c 100644 --- a/src/handlers/dispatchers.ts +++ b/src/handlers/dispatchers.ts @@ -84,9 +84,6 @@ export function createDispatcher(payload: { } return { module: payload.module, args: contextArgs(payload.event) }; } - default: return { - module: payload.module, - args: [payload.event], - }; + default: return { module: payload.module, args: [payload.event] }; } }