Closed
Description
TypeScript Version: 3.1.1
Search Terms: async export convert
Code
export function testAsync() {
return apiFetchJSON('url').then((data) => {
if (!data.error) {
return data;
} else {
return null;
}
});
}
Expected behavior:
Converted to export async function testAsync() { ... }
Actual behavior:
Converted to async export function testAsync() { ... }