From 40811d487f538bc38545150c9de8347cdc77d45e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20My=C5=9Bliwiec?= Date: Thu, 28 Sep 2023 08:39:48 +0200 Subject: [PATCH] fix: command bus typing issue --- src/command-bus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command-bus.ts b/src/command-bus.ts index 74d1912a..f14c4329 100644 --- a/src/command-bus.ts +++ b/src/command-bus.ts @@ -98,7 +98,7 @@ export class CommandBus return commandMetadata.id; } - private getCommandName(command: Type): string { + private getCommandName(command: CommandBase): string { const { constructor } = Object.getPrototypeOf(command); return constructor.name as string; }