diff --git a/typings/index.d.ts b/typings/index.d.ts index 31fbe702d..8847a68a5 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -520,9 +520,9 @@ declare namespace CodeceptJS { } } -type TryTo = (fn: () => Promise | T) => Promise -type HopeThat = (fn: () => Promise | T) => Promise -type RetryTo = (fn: () => Promise | T, retries?: number) => Promise +type TryTo = (fn: () => void) => Promise +type HopeThat = (fn: () => void) => Promise +type RetryTo = (fn: (tries: number) => Promise | void, maxTries: number, pollInterval?: number) => Promise // Globals declare const codecept_dir: string