From 81d419bacf304ffc93728a3ec58c6e8195a914e2 Mon Sep 17 00:00:00 2001 From: marioK Date: Thu, 5 Sep 2013 13:12:43 -0700 Subject: [PATCH] Fixed withArgs return type on SinonStub and SinonSpy --- sinon/sinon-1.5.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sinon/sinon-1.5.d.ts b/sinon/sinon-1.5.d.ts index 17e3115cd..0ae83aa4d 100644 --- a/sinon/sinon-1.5.d.ts +++ b/sinon/sinon-1.5.d.ts @@ -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 {