diff --git a/typings/index.d.ts b/typings/index.d.ts index 50e3fcc95..a09bcbbe8 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -522,9 +522,9 @@ declare namespace CodeceptJS { function addStep(step: string | RegExp, fn: Function): Promise } -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