// LICENSE : MIT "use strict"; import { Payload } from "./Payload"; /** * XXX: This is exported for an unit testing. * DO NOT USE THIS in your application. */ export const TYPE = "__ALMIN_WILL_EXECUTED_EACH_USECASE__"; export class WillExecutedPayload implements Payload { type = TYPE; /** * a array for argument of the useCase */ args: Array; constructor({ args = [] }: { args?: Array }) { this.args = args; } } export function isWillExecutedPayload(v: Payload): v is WillExecutedPayload { return v.type === TYPE; }