Updated a type signature

This commit is contained in:
2022-11-17 19:23:17 +01:00
parent ffd3c99292
commit 9dd5a259ae
+2 -4
View File
@@ -24,11 +24,9 @@ function once<T extends (...args: any) => any>(fn: T, message: string): T {
}) as T
}
interface Lock {
(): void
}
type Lock = () => void
interface Mutex {
type Mutex = {
lock(): Promise<Lock>
}