Updated a type signature

pull/1/head
Antonio De Lucreziis 2 years ago
parent ffd3c99292
commit 9dd5a259ae

@ -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>
} }

Loading…
Cancel
Save