Updated a type signature
This commit is contained in:
@@ -24,11 +24,9 @@ function once<T extends (...args: any) => any>(fn: T, message: string): T {
|
|||||||
}) as T
|
}) as T
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Lock {
|
type Lock = () => void
|
||||||
(): void
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Mutex {
|
type Mutex = {
|
||||||
lock(): Promise<Lock>
|
lock(): Promise<Lock>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user