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

8 lines
241 B
TypeScript

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;