Skip to content

Commit

Permalink
Merge pull request #145 from rsolomo/node-util
Browse files Browse the repository at this point in the history
add node util module
  • Loading branch information
gabelevi committed Dec 19, 2014
2 parents ce3f18f + ce002f2 commit 5676791
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,21 @@ declare module "url" {
}

declare module "util" {
// TODO
declare function debuglog(section: string): (data: any, ...args: any) => void;
declare function format(format: string, ...placeholders: any): string;
declare function log(string: string): void;
declare function inspect(object: any, options?: {
showHidden?: boolean;
depth?: ?number;
colors?: boolean;
customInspect?: boolean;
}): string;
declare function isArray(object: any): boolean;
declare function isRegExp(object: any): boolean;
declare function isDate(object: any): boolean;
declare function isError(object: any): boolean;
declare function inherits(constructor: Function, superConstructor: Function): void;
declare function deprecate(f: Function, string: string): Function;
}

declare module "vm" {
Expand Down

0 comments on commit 5676791

Please sign in to comment.