refactor: remove cast

This commit is contained in:
Jacob Nguyen
2023-05-18 21:36:41 -05:00
parent 08e358b32d
commit ea78a98f69
3 changed files with 20 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ export interface SernEventCommand<T extends keyof SernEventsMapping = keyof Sern
}
export interface ExternalEventCommand extends Module {
name?: string;
emitter: string;
emitter: keyof Dependencies;
type: EventType.External;
execute(...args: unknown[]): Awaitable<unknown>;
}