DefinitelyTyped/types/gently/index.d.ts
2017-03-24 14:27:52 -07:00

26 lines
785 B
TypeScript

// Type definitions for gently
// Project: https://www.npmjs.org/package/gently
// Definitions by: bonnici <https://github.com/bonnici>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Imported from: https://github.com/soywiz/typescript-node-definitions/gently.d.ts
export = Gently;
declare class Gently {
constructor();
hijacked: any[];
expect(obj: any, method: string, stubFn?: (...args: any[]) => any): (...args: any[]) => any;
expect(obj: any, method: string, count: number, stubFn: (...args: any[]) => any): (...args: any[]) => any;
restore(obj: any, method: string): void;
hijack(realRequire: (id: string) => any): (id: string) => any;
stub(location: string, exportsName?: string): any;
verify(msg?: string): void;
}