callback on check should pass isLocked boolean

This commit is contained in:
Daniel Beckwith
2015-06-21 14:26:24 -04:00
parent 84dfeeac37
commit 732a73c1b1
+2 -2
View File
@@ -18,7 +18,7 @@ declare module 'lockfile' {
export function unlock(path: string, callback: (err: Error) => void): void;
export function unlockSync(path: string):void;
export function check(path: string, opts: Options, callback: (err: Error) => void): void;
export function check(path: string, callback: (err: Error) => void): void;
export function check(path: string, opts: Options, callback: (err: Error, isLocked: boolean) => void): void;
export function check(path: string, callback: (err: Error, isLocked: boolean) => void): void;
export function checkSync(path: string, opts: Options): boolean;
}