Skip to content

Commit

Permalink
deprecate a few things that i impusively added lol
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobes committed Feb 15, 2024
1 parent 4efdbb2 commit 86ebb22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 7 additions & 0 deletions src/core/contracts/module-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T extends CommandType>(
name: string,
commandType: T,
Expand Down
5 changes: 1 addition & 4 deletions src/handlers/dispatchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] };
}
}

0 comments on commit 86ebb22

Please sign in to comment.