Skip to content

Commit 6a2962b

Browse files
committed
Fixed typescript check
1 parent 779a27b commit 6a2962b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

typings/index.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,14 @@ export type FireEventAPI = FireEventFunction & {
224224
scroll: (element: ReactTestInstance, ...data: Array<any>) => any;
225225
};
226226

227+
type WaitForOptions = {
228+
timeout?: number;
229+
interval?: number;
230+
};
231+
227232
export type WaitForFunction = <T = any>(
228233
expectation: () => T,
229-
{ timeout?: number, interval?: number }?
234+
options?: WaitForOptions
230235
) => Promise<T>;
231236

232237
export type DebugFunction = (

0 commit comments

Comments
 (0)