mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 19:59:02 +08:00
* Expanded Sinon's createStubInstance types
* Defaulted createStubInstance behavior to not use the better types
TType gets inferred to `{}` by default. Odd.
* Removed commented out typings
* Removed unnecessary imports from i18next-tests
* Added TS 2.2 notices
* Bumped TS versions to 2.3
* Consolidated optional types for StubbableType
* Update index.d.ts
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.2
|
|
|
|
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
|
|
}
|
|
}
|