DefinitelyTyped/proxyquire/proxyquire.d.ts
Andrew Eisenberg 71fed47a63 Proxyquire uses a fluent api
All of its api configuration methods return an object with the `Proxyquire` type.
2016-02-12 21:41:13 -08:00

26 lines
607 B
TypeScript

// Type definitions for Proxyquire 1.3.0
// Project: https://github.com/thlorenz/proxyquire
// Definitions by: jt000 <https://github.com/jt000/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface Proxyquire {
(request: string, stubs: any): any;
<T>(request: string, stubs: any): T;
load(request: string, stubs: any): any;
load<T>(request: string, stubs: any): T;
noCallThru(): Proxyquire;
callThru(): Proxyquire;
noPreserveCache(): Proxyquire;
preserveCache(): Proxyquire;
}
declare module 'proxyquire' {
var p: Proxyquire;
export = p;
}