diff --git a/src/types/index.ts b/src/types/index.ts index 3b3f7cfb2..9c2ffcb81 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -64,17 +64,17 @@ export interface ImageInfo { size: ImageSize; } -export interface AssertViewResultSuccess { - refImg: ImageInfo; - stateName: string; -} - export interface DiffOptions extends LooksSameOptions { current: string; reference: string; diffColor: string; } +export interface AssertViewResultSuccess { + refImg: ImageInfo; + stateName: string; +} + export interface AssertViewResultDiff { currImg: ImageInfo; diffBuffer?: ArrayBuffer; @@ -118,7 +118,13 @@ export interface CommandHistory { } export interface ExecutionThreadToolCtx { - assertViewResults: Array; + assertViewResults: { + add: (result: AssertViewResult) => void; + hasFails: () => boolean; + hasState: (stateName: string) => boolean; + toRawObject: () => Array; + get: () => Array; + }; } export interface TestResult extends Test {