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 7b1c520 commit d10f653Copy full SHA for d10f653
typings/index.d.ts
@@ -522,9 +522,9 @@ declare namespace CodeceptJS {
522
function addStep(step: string | RegExp, fn: Function): Promise<void>
523
}
524
525
-type TryTo = <T>(fn: () => Promise<T> | T) => Promise<T | false>
526
-type HopeThat = <T>(fn: () => Promise<T> | T) => Promise<T | false>
527
-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>
528
529
// Globals
530
declare const codecept_dir: string
0 commit comments