|
|
|
|
|
by scoti
3438 days ago
|
|
I had the same problem until a recent TS release introducing the keyof feature. You can create a TypeScript type that automatically convert a class definition to stubs. type StubInstance<T> = {
[P in keyof T]: sinon.SinonStub;
};
|
|