mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Clean up for type precision and clarity
This commit is contained in:
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", `
|
||||
|
||||
Reference in new issue
Block a user