We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4218e2e commit 46f56e3Copy full SHA for 46f56e3
whatwg-fetch/whatwg-fetch-tests.ts
@@ -100,8 +100,11 @@ function test_Body_json() {
100
fetch('http://test.com')
101
.then(response => response.json())
102
.then(fooBar => {
103
- // fooBar is any, not FooBar
104
- console.log(fooBar.foo);
105
- console.log(fooBar.bar);
+ // fooBar is of type any, not of type FooBar
+
+ // FIXME Was behaving properly with TypeScript 2.0.10, not anymore with 2.1.4
106
+ // See Wrong type with Promise chaining and 2.1.4 https://github.com/Microsoft/TypeScript/issues/12409
107
+ //console.log(fooBar.foo);
108
+ //console.log(fooBar.bar);
109
});
110
}
0 commit comments