From b50b4e96e77c0652b16e1627b226b57508ea868f Mon Sep 17 00:00:00 2001 From: Denys Kuchma Date: Fri, 16 Jan 2026 14:37:25 +0200 Subject: [PATCH] correct TypeScript type definitions 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 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