UNPKG

exthos

Version:

stream processing in nodejs using the power of golang

35 lines 1.39 kB
declare function checkExeExists(): boolean; declare function standardizeAxiosErrors(e: any): Error; declare function sleep(ms: number): Promise<boolean>; declare class Deferred { promise: Promise<unknown>; reject: (reason?: any) => void; resolve: (value?: any) => void; fulfilled: boolean; rejected: boolean; resolved: boolean; constructor(); } declare function replaceKeys(obj: any, keyMap: { [oldKey: string]: () => string; }): any; declare function replaceValueForKey<O>(obj: O, kv: { [forKey: string]: (existingValue: any) => any; }): O; declare function proxyPromise<T extends (...args: any) => any>(t: T): (...params: Parameters<T>) => Awaited<ReturnType<T>> & { then: (value: (rt: Awaited<ReturnType<T>>) => void) => { catch: (value: (e: Error) => void) => { finally: (value: () => void) => void; }; } & { finally: (value: () => void) => void; }; catch: (value: (e: Error) => void) => { finally: (value: () => void) => void; }; }; declare function getISOStringLocalTz(date?: Date): string; declare function getCaller(): any; declare function formatErrorForEvent(e: any): {}; export { checkExeExists, standardizeAxiosErrors, sleep, Deferred, replaceKeys, replaceValueForKey, proxyPromise, getISOStringLocalTz, getCaller, formatErrorForEvent, }; //# sourceMappingURL=utils.d.ts.map