We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f1269b commit 058ee82Copy full SHA for 058ee82
typings/index.d.ts
@@ -520,9 +520,9 @@ declare namespace CodeceptJS {
520
}
521
522
523
-type TryTo = <T>(fn: () => Promise<T> | T) => Promise<T | false>
524
-type HopeThat = <T>(fn: () => Promise<T> | T) => Promise<T | false>
525
-type RetryTo = <T>(fn: () => Promise<T> | T, retries?: number) => Promise<T>
+type TryTo = (fn: () => void) => Promise<boolean>
+type HopeThat = (fn: () => void) => Promise<boolean>
+type RetryTo = (fn: (tries: number) => Promise<void> | void, maxTries: number, pollInterval?: number) => Promise<boolean>
526
527
// Globals
528
declare const codecept_dir: string
0 commit comments