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 97557f9 commit 64e9cb3Copy full SHA for 64e9cb3
lib/lib.es5.d.ts
@@ -1486,7 +1486,7 @@ type ConstructorParameters<T extends new (...args: any) => any> = T extends new
1486
/**
1487
* Obtain the return type of a function type
1488
*/
1489
-type ReturnType<T extends (...args: never) => any> = T extends (...args: never) => infer R ? R : any;
+type ReturnType<T extends (...args: any) => any> = T extends (...args: never) => infer R ? R : any;
1490
1491
1492
* Obtain the return type of a constructor function type
0 commit comments