4.1.4 • Published 6 months ago

@types/happo-cypress v4.1.4

Weekly downloads
164
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/happo-cypress

Summary

This package contains type definitions for happo-cypress (https://github.com/happo/happo-cypress#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/happo-cypress.

index.d.ts

// Type definitions for happo-cypress 3.0
// Project: https://github.com/happo/happo-cypress#readme
// Definitions by: Alexander Polyankin <https://github.com/alexanderpolyankin>
//                 Mario Beltrán Alarcón <https://github.com/Belco90>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface HappoScreenshotOptions {
    component?: string | undefined;
    variant?: string | undefined;
    targets?: ReadonlyArray<string> | undefined;
    responsiveInlinedCanvases?: boolean | undefined;
    transformDOM?: HappoTransformDOMOptions | undefined;
}

export interface HappoTransformDOMOptions {
    selector: string;
    transform: (element: Element, document: Document) => Element;
}

export interface HappoHideDynamicElementsOptions {
    matchers?: ReadonlyArray<RegExp> | undefined;
    defaultMatchers?: ReadonlyArray<RegExp> | undefined;
    selectors?: ReadonlyArray<string> | undefined;
    defaultSelectors?: ReadonlyArray<string> | undefined;
    replace?: boolean | undefined;
}

declare global {
    namespace Cypress {
        interface Chainable {
            happoScreenshot(options?: HappoScreenshotOptions): void;
            happoHideDynamicElements(options?: HappoHideDynamicElementsOptions): void;
        }
    }
}

Additional Details

  • Last updated: Thu, 21 Apr 2022 18:31:42 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Alexander Polyankin, and Mario Beltrán Alarcón.

4.1.4

6 months ago

4.1.3

6 months ago

4.1.2

7 months ago

4.1.1

9 months ago

4.1.0

1 year ago

3.0.2

1 year ago

3.0.1

2 years ago

3.0.0

2 years ago

1.17.2

3 years ago

1.17.1

3 years ago

1.17.0

3 years ago