forked from soywiz-archive/typescript-node-definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgently.d.ts
More file actions
24 lines (16 loc) · 737 Bytes
/
gently.d.ts
File metadata and controls
24 lines (16 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Usage: In typescript you must use seperate statements for importing and creating the class:
// import Gently = require('gently');
// var gently: Gently = new Gently();
declare module "gently" {
export = Gently;
class Gently {
constructor();
hijacked: any[];
expect(obj: any, method: string, stubFn?: (...args: any[]) => any): (...args: any[]) => any;
expect(obj: any, method: string, count: number, stubFn: (...args: any[]) => any): (...args: any[]) => any;
restore(obj: any, method: string): void;
hijack(realRequire: (id: string) => any): (id: string) => any;
stub(location: string, exportsName?: string): any;
verify(msg?: string): void;
}
}