UNPKG

@sauce-api/core

Version:

Sauce API core functionality

10 lines (9 loc) 581 B
import { ErrorInterface } from "./resources/ErrorInterface"; import { SauceConfig } from "./resources/SauceConfig"; export declare const cleanObject: (obj: any) => Promise<void>; export declare const formatError: (status: number, details: any) => ErrorInterface; type asyncForEachCB<A, B> = (item: A, index?: number, array?: A[]) => any; export declare const asyncForEach: <A = any, B = A>(array: A[], callback: asyncForEachCB<A, B>) => Promise<B[]>; export declare const getAppUrl: (config: SauceConfig) => string; export declare const isObject: (obj: any) => boolean; export {};