Skip to content

Commit d882343

Browse files
fix: make saveAboveTolerance optional in CompareOptions interface
This fixes the TypeScript error that occurred after removing saveAboveTolerance from DEFAULT_COMPARE_OPTIONS. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 1e9d9d5 commit d882343

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/image-comparison-core/src/helpers/options.interfaces.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,10 @@ export interface CompareOptions {
461461

462462
/**
463463
* Mismatch percentage threshold above which the image with differences will be saved.
464+
* When undefined, actual images won't be saved (respects alwaysSaveActualImage: false).
465+
* Matchers set this value internally based on the expected threshold.
464466
*/
465-
saveAboveTolerance: number;
467+
saveAboveTolerance?: number;
466468

467469
/**
468470
* Scale images to the same size before comparing them.

0 commit comments

Comments
 (0)