Files
DefinitelyTyped/types/sinon-mongoose/index.d.ts
James Garbutt 73f6eb2bca sinon: 5.x release and cleanup (#25491)
* sinon: cleanup types and rewrite tests

* Used a conditional type for Sinon's stub class typings  (#25656)

* Used a conditional type for Sinon's stub class typings

* mochaccino

* sinon: fix some whitespace

* sinon: stub/spy test case

* sinon: cleanup mixed indent
2018-05-24 08:03:23 -07:00

17 lines
502 B
TypeScript

// Type definitions for sinon-mongoose v1.3.0
// Project: https://github.com/underscopeio/sinon-mongoose
// Definitions by: stevehipwell <https://github.com/stevehipwell>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as s from "sinon";
declare module "sinon" {
export interface SinonStub {
/**
* When called, the stub will create a new stub to represent a mongoose chained function.
*/
chain(name: string): SinonStub
}
}