Skip to content

Commit 95f136d

Browse files
authored
Update global-variables.types.ts
1 parent c95ad46 commit 95f136d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

typings/tests/global-variables.types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ expectType<void>(AfterSuite((args) => {
8585
}))
8686

8787
// @ts-ignore
88-
expectType<Promise<boolean | any>>(tryTo(() => {
89-
return 123;
88+
expectType<Promise<boolean>>(tryTo(() => {
89+
return true;
9090
}));
9191

9292
// @ts-ignore
93-
expectType<Promise<boolean | any>>(tryTo(async () => {
94-
return 'async result';
93+
expectType<Promise<boolean>>(tryTo(async () => {
94+
return false;
9595
}));

0 commit comments

Comments
 (0)