Skip to content
This repository has been archived by the owner on Dec 24, 2023. It is now read-only.

fix: fix types #145

Merged
merged 1 commit into from
Oct 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/base.interface.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export interface Folders {
actualFolder: string; // The actual folder where the current screenshots need to be saved
baselineFolder: any; // The baseline folder where the baseline screenshots can be found
baselineFolder: string; // The baseline folder where the baseline screenshots can be found
diffFolder: string; // The diff folder where the differences are saved
}
3 changes: 2 additions & 1 deletion lib/commands/element.interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Folders } from '../base.interface';
import { DefaultOptions } from '../helpers/options.interface';
import { ResizeDimensions } from '../methods/images.interfaces';
import { CheckMethodOptions } from './check.interfaces';
Expand All @@ -7,7 +8,7 @@ export interface SaveElementOptions {
method: SaveElementMethodOptions;
}

export interface SaveElementMethodOptions {
export interface SaveElementMethodOptions extends Partial<Folders> {
// The padding that needs to be added to the address bar on iOS and Android
addressBarShadowPadding?: number;
// Disable all css animations
Expand Down
3 changes: 2 additions & 1 deletion lib/commands/fullPage.interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Folders } from '../base.interface';
import { DefaultOptions } from '../helpers/options.interface';
import { ResizeDimensions } from '../methods/images.interfaces';
import { CheckMethodOptions } from './check.interfaces';
Expand All @@ -7,7 +8,7 @@ export interface SaveFullPageOptions {
method: SaveFullPageMethodOptions;
}

export interface SaveFullPageMethodOptions {
export interface SaveFullPageMethodOptions extends Partial<Folders> {
// The padding that needs to be added to the address bar on iOS and Android
addressBarShadowPadding?: number;
// Disable all css animations
Expand Down
3 changes: 2 additions & 1 deletion lib/commands/screen.interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Folders } from '../base.interface';
import { DefaultOptions } from '../helpers/options.interface';
import { CheckMethodOptions } from './check.interfaces';

Expand All @@ -6,7 +7,7 @@ export interface SaveScreenOptions {
method: SaveScreenMethodOptions;
}

export interface SaveScreenMethodOptions {
export interface SaveScreenMethodOptions extends Partial<Folders> {
// Disable all css animations
disableCSSAnimation?: boolean;
// Hide scrollbars, this is optional
Expand Down
9 changes: 2 additions & 7 deletions lib/methods/images.interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { RectanglesOutput } from './rectangles.interfaces';
import { LogLevel } from '../helpers/options.interface';
import { Folders } from '../base.interface';

export interface ResizeDimensions {
// The bottom margin
Expand Down Expand Up @@ -100,19 +101,13 @@ export interface MethodImageCompareCompareOptions {
scaleImagesToSameSize?: boolean;
}

export interface ImageCompareFolderOptions {
export interface ImageCompareFolderOptions extends Folders {
// Auto save image to baseline
autoSaveBaseline: boolean;
// The actual folder
actualFolder: string;
// The baseline folder
baselineFolder: any;
// The name of the browser
browserName: string;
// The name of the device
deviceName: string;
// The diff folder
diffFolder: string;
// Is the instance a mobile instance
isMobile: boolean;
// If the folder needs to have the instance name in it
Expand Down
Loading