@opra/common
Version:
Opra common package
15 lines (14 loc) • 469 B
TypeScript
import type { DeepPartial, Type } from 'ts-gems';
import type { ErrorIssue } from '../../../exception/index.js';
export declare class OperationResult<TPayload = any> {
constructor(init?: DeepPartial<OperationResult>);
context?: string;
type?: string;
message?: string;
payload?: TPayload;
errors?: ErrorIssue[];
[index: string]: any;
}
export declare namespace OperationResult {
function forPayload(type: Type): Type<OperationResult>;
}