From 058ee82b8660ddf7002632284bf7a100ba0b18e0 Mon Sep 17 00:00:00 2001 From: Daniel Rentz Date: Mon, 24 Nov 2025 14:04:33 +0100 Subject: [PATCH] fixed: #5205 correct typings for effect functions --- typings/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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