mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
* 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
17 lines
502 B
TypeScript
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
|
|
}
|
|
}
|