Skip to content

Commit 058ee82

Browse files
committed
fixed: #5205 correct typings for effect functions
1 parent 5f1269b commit 058ee82

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
@@ -520,9 +520,9 @@ declare namespace CodeceptJS {
520520
}
521521
}
522522

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

527527
// Globals
528528
declare const codecept_dir: string

0 commit comments

Comments
 (0)