UNPKG

@addapptables/microservice

Version:
13 lines (10 loc) 367 B
import { ICommand } from './interfaces/commands/command.interface'; import { ICommandDto } from './interfaces/commands/command-dto-interface'; export abstract class Command<T extends ICommandDto> implements ICommand<T> { abstract context: string; abstract action: string; constructor( readonly data: T, readonly cid?: string ) { } }