1 | // Type definitions for Proxyquire 1.3.0
|
2 | // Project: https://github.com/thlorenz/proxyquire
|
3 | // Definitions by: jt000 <https://github.com/jt000>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | declare var p: Proxyquire;
|
7 | export = p;
|
8 |
|
9 | interface Proxyquire {
|
10 |
|
11 | (request: string, stubs: any): any;
|
12 | <T>(request: string, stubs: any): T;
|
13 |
|
14 | load(request: string, stubs: any): any;
|
15 | load<T>(request: string, stubs: any): T;
|
16 |
|
17 | noCallThru(): Proxyquire;
|
18 | callThru(): Proxyquire;
|
19 |
|
20 | noPreserveCache(): Proxyquire;
|
21 | preserveCache(): Proxyquire;
|
22 | }
|