Created
July 1, 2020 15:21
-
-
Save Miczeq22/76cd7ccc1ceb03201b2ebeb42a7f24e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class CommandHandler<T extends Command<unknown>> { | |
constructor(public readonly type: string) {} | |
public abstract async execute(command: T); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment