Skip to content

Commit 06c8506

Browse files
committed
Add new baselines
1 parent 4c73b2e commit 06c8506

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// ==ORIGINAL==
2+
3+
function /*[#|*/f/*|]*/(): Promise<void>{
4+
return fetch('https://typescriptlang.org').then(([result]) => { console.log(result) });
5+
}
6+
// ==ASYNC FUNCTION::Convert to async function==
7+
8+
async function f(): Promise<void>{
9+
let [result] = await fetch('https://typescriptlang.org');
10+
console.log(result);
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// ==ORIGINAL==
2+
3+
function /*[#|*/f/*|]*/(): Promise<void>{
4+
return fetch('https://typescriptlang.org').then(({ result }) => { console.log(result) });
5+
}
6+
// ==ASYNC FUNCTION::Convert to async function==
7+
8+
async function f(): Promise<void>{
9+
let { result } = await fetch('https://typescriptlang.org');
10+
console.log(result);
11+
}

0 commit comments

Comments
 (0)