@betit/orion-node-sdk
Version:
SDK for orion
20 lines (19 loc) • 574 B
TypeScript
import { OrionError } from '../error/error';
/**
* @module utils
*/
export declare function debugLog(section: string): any;
/**
* Generate short unique ids.
*/
export declare function generateId(len?: number, hex?: boolean): string;
export declare function getLineFromError(e: Error): {
isError: boolean;
stack: string;
filepath: string;
line: string;
column: string;
};
export declare function parseError(err: Error): any;
export declare function StringifyError(e: Error | OrionError): string;
export declare function sleep(ms: any): Promise<void>;