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
|
||||
}
|
||||
|
||||
interface Lock {
|
||||
(): void
|
||||
}
|
||||
type Lock = () => void
|
||||
|
||||
interface Mutex {
|
||||
type Mutex = {
|
||||
lock(): Promise<Lock>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user