Skip to content

Instantly share code, notes, and snippets.

@tsh-code
Created October 19, 2021 10:18
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 tsh-code/05ea9f7f127653750f9b8730e17a9e58 to your computer and use it in GitHub Desktop.
Save tsh-code/05ea9f7f127653750f9b8730e17a9e58 to your computer and use it in GitHub Desktop.
import { Command } from "../../../../shared/command-bus";
export const CREATE_USER_COMMAND_TYPE = "user/CREATE_USER";
export interface CreateUserCommandPayload {
name: string;
}
export class CreateUserCommand implements Command<CreateUserCommandPayload> {
public type: string = CREATE_USER_COMMAND_TYPE;
constructor(public payload: CreateUserCommandPayload) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment