@log-right/base > ResultBaseParams
ResultBaseParams type​
Parameters that can be passed into the ResultBase
class's constructor to initialize an object
export declare type ResultBaseParams<TReturned = any> = (Event | {
message: string;
type: string;
} | {
message?: string;
type: "SUCCESS";
} | {
message: string;
severity: string;
} | {
message?: string;
severity: 0;
}) & {
data?: TReturned;
};