@sidequest/core
Version:
@sidequest/core is the core package of SideQuest, a distributed background job queue for Node.js and TypeScript applications.
11 lines (8 loc) • 325 B
TypeScript
import { ErrorData } from '../schema/error-data.js';
/**
* Converts a string, Error, or ErrorData to ErrorData format.
* @param error The error input (string, Error, or ErrorData).
* @returns The error as ErrorData.
*/
declare function toErrorData(error: string | Error | ErrorData): ErrorData;
export { toErrorData };