Skip to content

Commit

Permalink
fix: command bus typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Sep 28, 2023
1 parent b6c1440 commit 40811d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command-bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class CommandBus<CommandBase extends ICommand = ICommand>
return commandMetadata.id;
}

private getCommandName(command: Type<CommandBase>): string {
private getCommandName(command: CommandBase): string {
const { constructor } = Object.getPrototypeOf(command);
return constructor.name as string;
}
Expand Down

0 comments on commit 40811d4

Please sign in to comment.