3 ms·
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 t
by scoti 10y 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;
};