diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-03-10 04:30:38 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-09 12:30:38 -0500 |
commit | 034e2cc02829c9244b32232074c7a48af827a2fb (patch) | |
tree | bade01606a1ee076c1f753ce99c97ddb1e4edf30 /tests/012_async.ts | |
parent | 8c7a12d1b258f0ef5ab27f49c424331d43e8d97f (diff) |
Migrate from tslint to eslint for linting (#1905)
Diffstat (limited to 'tests/012_async.ts')
-rw-r--r-- | tests/012_async.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/012_async.ts b/tests/012_async.ts index 57ae355c2..12df73b3e 100644 --- a/tests/012_async.ts +++ b/tests/012_async.ts @@ -1,6 +1,6 @@ // Check that we can use the async keyword. -async function main() { - await new Promise((resolve, reject) => { +async function main(): Promise<void> { + await new Promise(resolve => { console.log("2"); setTimeout(resolve, 100); }); |