Don't require latest version of cypress to use the types in cypress-image-snapshot (#41921)

This commit is contained in:
Alex Kessock 2020-01-28 15:04:08 -07:00 committed by Wesley Wigham
parent 1eca72805d
commit 3e1e03d0d4
2 changed files with 10 additions and 9 deletions

View File

@ -3,11 +3,18 @@
// Definitions by: Alex Kessock <https://github.com/Keysox>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="Cypress" />
export interface Options
extends Partial<
Cypress.ScreenshotOptions & {
{
blackout: string[];
capture: 'runner' | 'viewport' | 'fullPage';
clip: { x: number; y: number; width: number; height: number };
disableTimersAndAnimations: boolean;
padding: number | [number] | [number, number] | [number, number, number] | [number, number, number, number];
scale: boolean;
beforeScreenshot(doc: Document): void;
afterScreenshot(doc: Document): void;
} & {
customDiffConfig?: {
readonly threshold?: number;
readonly includeAA?: boolean;

View File

@ -1,6 +0,0 @@
{
"private": true,
"dependencies": {
"cypress": "^3.8.3"
}
}