Skip to content

Commit 78d1707

Browse files
committed
Added gnetly, removed implied declares from nock
1 parent a71fdee commit 78d1707

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

gently.d.ts

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module "gently" {
2+
export import gently = module("gently");
3+
4+
function new(): Gently;
5+
6+
class Gently {
7+
hijacked: any[];
8+
9+
expect(obj: any, method: string, stubFn?: (...args: any[]) => any): (...args: any[]) => any;
10+
expect(obj: any, method: string, count: number, stubFn: (...args: any[]) => any): (...args: any[]) => any;
11+
12+
restore(obj: any, method: string): void;
13+
14+
hijack(realRequire: (id: string) => any): (id: string) => any;
15+
16+
stub(location: string, exportsName?: string): any;
17+
18+
verify(msg?: string): void;
19+
}
20+
}

nock.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
declare module "nock" {
22
export import nock = module('nock');
33

4-
export function(host: string, options?: Options): Scope;
5-
export var recorder: Recorder;
4+
function(host: string, options?: Options): Scope;
5+
var recorder: Recorder;
66

7-
declare class Scope {
7+
class Scope {
88
get(path: string, data?: string): Scope;
99
post(path: string, data?: string): Scope;
1010
put(path: string, data?: string): Scope;
@@ -33,7 +33,7 @@ declare module "nock" {
3333
restore(): void;
3434
}
3535

36-
declare class Recorder {
36+
class Recorder {
3737
rec(capture?: bool): void;
3838
play(): string[];
3939
}

0 commit comments

Comments
 (0)