GT2/GT2-Android/node_modules/lock/index.d.ts

8 lines
241 B
TypeScript
Raw Normal View History

export = Lock;
type release = (releaseCallback?: () => void) => () => void;
type exec = (release: release) => void;
interface lock {
(key: string | string[], exec: exec): void;
isLocked(): boolean;
}
declare function Lock(): lock;