mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Merge pull request #1004 from mariokostelac/master
Fixed withArgs return type on SinonStub and SinonSpy
This commit is contained in:
3
sinon/sinon-1.5.d.ts
vendored
3
sinon/sinon-1.5.d.ts
vendored
@@ -59,7 +59,7 @@ interface SinonSpy extends SinonSpyCallApi {
|
||||
calledBefore(anotherSpy: SinonSpy): boolean;
|
||||
calledAfter(anotherSpy: SinonSpy): boolean;
|
||||
calledWithNew(spy: SinonSpy): boolean;
|
||||
withArgs(...args: any[]): void;
|
||||
withArgs(...args: any[]): SinonSpy;
|
||||
alwaysCalledOn(obj: any);
|
||||
alwaysCalledWith(...args: any[]);
|
||||
alwaysCalledWithExactly(...args: any[]);
|
||||
@@ -109,6 +109,7 @@ interface SinonStub extends SinonSpy {
|
||||
yieldsOnAsync(context: any, ...args: any[]): SinonStub;
|
||||
yieldsToAsync(property: string, ...args: any[]): SinonStub;
|
||||
yieldsToOnAsync(property: string, context: any, ...args: any[]): SinonStub;
|
||||
withArgs(...args: any[]): SinonStub;
|
||||
}
|
||||
|
||||
interface SinonStubStatic {
|
||||
|
||||
Reference in New Issue
Block a user