mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 22:44:18 +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
25 lines
728 B
TypeScript
25 lines
728 B
TypeScript
// Type definitions for sinon-test 1.0
|
|
// Project: https://github.com/sinonjs/sinon-test
|
|
// Definitions by: Francis Saul <https://github.com/mummybot>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import * as Sinon from 'sinon';
|
|
|
|
interface Configuration {
|
|
injectIntoThis?: boolean;
|
|
injectInto?: any;
|
|
properties?: Array<"spy"| "stub"| "mock"| "clock"| "server"| "requests">;
|
|
useFakeTimers?: boolean;
|
|
useFakeServer?: boolean;
|
|
}
|
|
|
|
interface sinonTest {
|
|
configureTest(sinon: Sinon.SinonStatic, config?: Configuration): any;
|
|
configureTestCase(sinon: Sinon.SinonStatic, config?: Configuration): any;
|
|
}
|
|
|
|
declare var sinonTest: sinonTest;
|
|
|
|
export = sinonTest;
|