13 lines
256 B
TypeScript
13 lines
256 B
TypeScript
|
export declare type Release = {
|
||
|
release: () => void;
|
||
|
};
|
||
|
export default class Lock {
|
||
|
private _locked;
|
||
|
readonly locked: boolean;
|
||
|
private toCome;
|
||
|
constructor();
|
||
|
getLock(): Promise<Release>;
|
||
|
private lock();
|
||
|
private release();
|
||
|
}
|