We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c95ad46 commit 95f136dCopy full SHA for 95f136d
typings/tests/global-variables.types.ts
@@ -85,11 +85,11 @@ expectType<void>(AfterSuite((args) => {
85
}))
86
87
// @ts-ignore
88
-expectType<Promise<boolean | any>>(tryTo(() => {
89
- return 123;
+expectType<Promise<boolean>>(tryTo(() => {
+ return true;
90
}));
91
92
93
-expectType<Promise<boolean | any>>(tryTo(async () => {
94
- return 'async result';
+expectType<Promise<boolean>>(tryTo(async () => {
+ return false;
95
0 commit comments