@opra/common
Version:
Opra common package
16 lines (15 loc) • 493 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>);
affected?: number;
totalMatches?: number;
context?: string;
type?: string;
message?: string;
payload?: TPayload;
errors?: ErrorIssue[];
}
export declare namespace OperationResult {
function forPayload(type: Type): Type<OperationResult>;
}