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. */