mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
Fix return type of all functions
This commit is contained in:
6
usage/usage.d.ts
vendored
6
usage/usage.d.ts
vendored
@@ -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;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user