Skip to content

Instantly share code, notes, and snippets.

@Codesleuth
Created September 25, 2016 16:28
Show Gist options
  • Save Codesleuth/6357970545e64b8a92a6b7c4c4c0e50a to your computer and use it in GitHub Desktop.
Save Codesleuth/6357970545e64b8a92a6b7c4c4c0e50a to your computer and use it in GitHub Desktop.
Proxyquire definitions
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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment