Home > @wixc3/common > errorToPlainObject
Signature:
export declare function errorToPlainObject<T extends Error>(error: T): T & {
message: string;
name: string;
stack: string | undefined;
};
Parameter | Type | Description |
---|---|---|
error | T |
Returns:
T & { message: string; name: string; stack: string | undefined; }