Skip to content

Instantly share code, notes, and snippets.

@vahidvdn
Last active February 21, 2024 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vahidvdn/468bd3a8b96541bc503517515ed0a83c to your computer and use it in GitHub Desktop.
Save vahidvdn/468bd3a8b96541bc503517515ed0a83c to your computer and use it in GitHub Desktop.
import { ICommand } from './command.interface';
export interface ICommandHandler<TCommand extends ICommand = any, TResult = any> {
execute(command: TCommand): Promise<TResult>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment