13 lines
252 B
TypeScript
13 lines
252 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;
|
||
|
}
|