Calls fake passes throught the arguments

This commit is contained in:
John Wood
2018-11-20 15:37:43 +00:00
parent 173f480c7d
commit ef9817f42d
+4 -4
View File
@@ -156,9 +156,9 @@ declare namespace Sinon {
interface SinonSpy<TArgs extends any[] = any[], TReturnValue = any>
extends Pick<
SinonSpyCallApi<TArgs, TReturnValue>,
Exclude<keyof SinonSpyCallApi<TArgs, TReturnValue>, 'args'>
> {
SinonSpyCallApi<TArgs, TReturnValue>,
Exclude<keyof SinonSpyCallApi<TArgs, TReturnValue>, '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<TArgs, TReturnValue>;
callsFake(func: (...args: TArgs) => TReturnValue): SinonStub<TArgs, TReturnValue>;
/**
* Replaces a new getter for this stub.
*/