Skip to content

Commit 926a36a

Browse files
authored
fix: miss the effects types (#5027)
* Update jsdoc.conf.js * fix: jsdoc.conf.js * Update jsdoc.conf.js * add types test * Update global-variables.types.ts
1 parent 440c9be commit 926a36a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

typings/jsdoc.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = {
99
'./lib/container.js',
1010
'./lib/data/table.js',
1111
'./lib/data/dataTableArgument.js',
12+
'./lib/effects.js',
1213
'./lib/event.js',
1314
'./lib/index.js',
1415
'./lib/locator.js',

typings/tests/global-variables.types.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,13 @@ expectType<void>(AfterSuite((args) => {
8383
// @ts-ignore
8484
expectType<CodeceptJS.I>(args.I)
8585
}))
86+
87+
// @ts-ignore
88+
expectType<Promise<boolean>>(tryTo(() => {
89+
return true;
90+
}));
91+
92+
// @ts-ignore
93+
expectType<Promise<boolean>>(tryTo(async () => {
94+
return false;
95+
}));

0 commit comments

Comments
 (0)