diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-07-02 05:13:38 +0530 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2022-07-02 06:19:03 +0530 |
commit | d16cc1f2c59818e53f28b4d6b4d27250331f15d7 (patch) | |
tree | 57bf4d149ec2be88dd0d351142998ce96db0d659 /src/helpers/async-helpers.ts | |
parent | chore: correctly export/import ui elements (diff) | |
download | ferdium-app-d16cc1f2c59818e53f28b4d6b4d27250331f15d7.tar.gz ferdium-app-d16cc1f2c59818e53f28b4d6b4d27250331f15d7.tar.zst ferdium-app-d16cc1f2c59818e53f28b4d6b4d27250331f15d7.zip |
Use default exports instead of named exports
Diffstat (limited to 'src/helpers/async-helpers.ts')
-rw-r--r-- | src/helpers/async-helpers.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/async-helpers.ts b/src/helpers/async-helpers.ts index 6556a0141..de20ea080 100644 --- a/src/helpers/async-helpers.ts +++ b/src/helpers/async-helpers.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | export function sleep(ms: number = 0): Promise<void> { | 1 | export default function sleep(ms: number = 0): Promise<void> { |
2 | // eslint-disable-next-line no-promise-executor-return | 2 | // eslint-disable-next-line no-promise-executor-return |
3 | return new Promise(r => setTimeout(r, ms)); | 3 | return new Promise(r => setTimeout(r, ms)); |
4 | } | 4 | } |