style: fix linter and add types

This commit is contained in:
Juan D. Jara
2021-09-27 02:35:10 +02:00
parent eea389879f
commit 54868fd486
4 changed files with 11 additions and 12 deletions

View File

@@ -40,7 +40,7 @@ class AsyncLock {
public dispatch = async (
key: string | number,
callback: () => Promise<void>
) => {
): Promise<void> => {
const skey = String(key);
await this.acquire(skey);
try {