Created
October 19, 2021 10:18
-
-
Save tsh-code/05ea9f7f127653750f9b8730e17a9e58 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
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