Skip to content

Commit d10f653

Browse files
authored
correct TypeScript type definitions for effect functions (#5395)
1 parent 7b1c520 commit d10f653

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

typings/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,9 @@ declare namespace CodeceptJS {
522522
function addStep(step: string | RegExp, fn: Function): Promise<void>
523523
}
524524

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>
525+
type TryTo = (fn: () => void) => Promise<boolean>
526+
type HopeThat = (fn: () => void) => Promise<boolean>
527+
type RetryTo = (fn: (tries: number) => Promise<void> | void, maxTries: number, pollInterval?: number) => Promise<boolean>
528528

529529
// Globals
530530
declare const codecept_dir: string

0 commit comments

Comments
 (0)