Interface MethodSpy<Self, Args, Return>
interface MethodSpy<Self, Args, Return> {
calls: SpyCall<Self, Args, Return>[];
original: ((this: Self, ...args: Args) => Return);
restored: boolean;
[dispose](): void;
restore(): void;
(this: Self, ...args: Args): Return;
}
calls: SpyCall<Self, Args, Return>[];
original: ((this: Self, ...args: Args) => Return);
restored: boolean;
[dispose](): void;
restore(): void;
(this: Self, ...args: Args): Return;
}
An instance method wrapper that records all calls made to it.