Fix return type of all functions

This commit is contained in:
Pascal Vomhoff
2015-08-08 17:42:55 +02:00
parent a71b9f2396
commit 6898cb77dc

6
usage/usage.d.ts vendored
View File

@@ -18,11 +18,11 @@ declare module "usage" {
keepHistory:boolean;
}
export function lookup(pid:number, callback:(err:Error, result:ResultObject) => void);
export function lookup(pid:number, options:Options, callback:(err:Error, result:ResultObject) => void);
export function lookup(pid:number, callback:(err:Error, result:ResultObject) => void):void;
export function lookup(pid:number, options:Options, callback:(err:Error, result:ResultObject) => void):void;
//Only availible on linux
export function clearHistory(pid?:number);
export function clearHistory(pid?:number):void;
}