mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
461 B
TypeScript
18 lines
461 B
TypeScript
// Type definitions for sequester 1.0.0
|
|
// Project: https://github.com/bigeasy/sequester
|
|
// Definitions by: Artur Eshenbrener <https://github.com/Strate>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
type Callback = () => void;
|
|
|
|
export interface Lock {
|
|
share(cb: Callback): void;
|
|
exclude(cb: Callback): void;
|
|
count: number;
|
|
dispose(): void;
|
|
unlock(): void;
|
|
downgrade(): void;
|
|
}
|
|
|
|
export function createLock(): Lock;
|