File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -520,11 +520,17 @@ declare namespace CodeceptJS {
520
520
}
521
521
}
522
522
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 > ;
526
+
527
+
523
528
// Globals
524
529
declare const codecept_dir : string
525
530
declare const output_dir : string
526
- declare function tryTo ( ...fn ) : Promise < boolean >
527
- declare function retryTo ( ...fn ) : Promise < null >
531
+ declare const tryTo : TryTo ;
532
+ declare const retryTo : RetryTo ;
533
+ declare const hopeThat : HopeThat ;
528
534
529
535
declare const actor : CodeceptJS . actor
530
536
declare const codecept_actor : CodeceptJS . actor
@@ -635,3 +641,9 @@ declare module 'codeceptjs' {
635
641
declare module '@codeceptjs/helper' {
636
642
export = CodeceptJS . Helper
637
643
}
644
+
645
+ declare module 'codeceptjs/effects' {
646
+ export const tryTo : TryTo ;
647
+ export const retryTo : RetryTo ;
648
+ export const hopeThat : HopeThat ;
649
+ }
You can’t perform that action at this time.
0 commit comments