@vizzly-testing/cli
Version:
Visual review platform for UI developers and designers
37 lines (36 loc) • 967 B
TypeScript
/**
* Create a new uploader instance
*/
export function createUploader({ apiKey, apiUrl, userAgent, command, upload: uploadConfig }: {
apiKey: any;
apiUrl: any;
userAgent: any;
command: any;
upload?: {};
}, options?: {}): {
upload: ({ screenshotsDir, buildName, branch, commit, message, environment, threshold, pullRequestNumber, parallelId, onProgress, }: {
screenshotsDir: any;
buildName: any;
branch: any;
commit: any;
message: any;
environment?: string;
threshold: any;
pullRequestNumber: any;
parallelId: any;
onProgress?: () => void;
}) => Promise<{
success: boolean;
buildId: any;
url: any;
stats: {
total: number;
uploaded: any;
skipped: any;
};
}>;
waitForBuild: (buildId: any, timeout?: number) => Promise<{
status: string;
build: any;
}>;
};