mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
callback on check should pass isLocked boolean
This commit is contained in:
Vendored
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user