From ef9817f42df725cc8f25e4e9540ef6ff9d6b1ac2 Mon Sep 17 00:00:00 2001 From: John Wood Date: Mon, 19 Nov 2018 09:44:29 +0000 Subject: [PATCH] Calls fake passes throught the arguments --- types/sinon/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/sinon/index.d.ts b/types/sinon/index.d.ts index 5587b7c931..9786e82edd 100644 --- a/types/sinon/index.d.ts +++ b/types/sinon/index.d.ts @@ -156,9 +156,9 @@ declare namespace Sinon { interface SinonSpy extends Pick< - SinonSpyCallApi, - Exclude, 'args'> - > { + SinonSpyCallApi, + Exclude, 'args'> + > { // Properties /** * The number of recorded calls. @@ -524,7 +524,7 @@ declare namespace Sinon { * Makes the stub call the provided @param func when invoked. * @param func */ - callsFake(func: (...args: any[]) => TReturnValue): SinonStub; + callsFake(func: (...args: TArgs) => TReturnValue): SinonStub; /** * Replaces a new getter for this stub. */