"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_COMPLETED_EACH_USECASE__" ; export class CompletedPayload implements Payload { type = TYPE ; /**
     * the value is returned by the useCase
     * Difference of DidExecutedPayload, the value always is resolved value.
     * Promise.resolve(returnedValue).then(value => {
     *  // `value` is this value
     * })
     */ value : any | undefined ; constructor ( { value } ) { this . value = value ; } } export function isCompletedPayload ( v ) { return v . type === TYPE ; }