mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
25 lines
594 B
TypeScript
25 lines
594 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(): void;
|
|
preserveCache(): void;
|
|
}
|
|
|
|
declare module 'proxyquire' {
|
|
|
|
var p: Proxyquire;
|
|
export = p;
|
|
} |