Files
DefinitelyTyped/types/sinon-test/index.d.ts
Josh Goldberg 2bd01e84f7 Expanded Sinon's createStubInstance to allow a TType generic (#16730)
* 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
2017-06-03 15:04:06 -07:00

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;