From e7f113071f26b40d3f82514fbeb77c06fdca4598 Mon Sep 17 00:00:00 2001 From: Roman Kuznetsov Date: Mon, 11 Mar 2024 13:22:53 +0300 Subject: [PATCH] fix: add ability to specify runStep resolved value --- src/browser/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser/types.ts b/src/browser/types.ts index d8d9264b6..ae572288e 100644 --- a/src/browser/types.ts +++ b/src/browser/types.ts @@ -92,9 +92,9 @@ declare global { * * @param stepName step name * @param stepCb step callback - * @returns {Promise} value, returned by `stepCb` + * @returns {Promise} value, returned by `stepCb` */ - runStep(stepName: string, stepCb: () => Promise | unknown): Promise; + runStep(stepName: string, stepCb: () => Promise | T): Promise; // TODO: describe executionContext more precisely executionContext: (RunnerTest | RunnerHook) & {