Clean up for type precision and clarity

This commit is contained in:
Benjamin Lichtman committed 2018-09-18 09:34:08 -07:00
1 parent e40ce24f8f
commit b484370dcc
4 files changed
+48 -8

No files matched your search

@@ -487,6 +487,12 @@ function [#|f|]():Promise<void | Response> {
function [#|f|]() {
return fetch('https://typescriptlang.org').then(undefined, rejection => console.log("rejected:", rejection));
}
`
);
_testConvertToAsyncFunction("convertToAsyncFunction_NoCatch", `
function [#|f|]() {
return fetch('https://typescriptlang.org').then(x => x.statusText).catch(undefined);
}
`
);
_testConvertToAsyncFunctionFailed("convertToAsyncFunction_NoSuggestion", `