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 dc34c5e commit efdbbd1Copy full SHA for efdbbd1
tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts
@@ -7,3 +7,20 @@ type typeAlias2 = typeof varOfAliasedType2;
7
function func(): typeAlias3 { return null; }
8
var varOfAliasedType3 = func();
9
type typeAlias3 = typeof varOfAliasedType3;
10
+
11
+// Repro from #26104
12
13
+interface Input {
14
+ a: number;
15
+ b: number;
16
+}
17
18
+type R = ReturnType<typeof mul>;
19
+function mul(input: Input): R {
20
+ return input.a * input.b;
21
22
23
24
25
+type R2 = ReturnType<typeof f>;
26
+function f(): R2 { return 0; }
0 commit comments