Add note about SinonStubbedInstance

This commit is contained in:
Retsam
2017-12-06 17:49:25 -05:00
parent f85b513e59
commit be4f4082cf
+2
View File
@@ -559,6 +559,8 @@ declare namespace Sinon {
* @template TType Object type being stubbed.
*/
type SinonStubbedInstance<TType> = {
// TODO: this should really only replace functions on TType with SinonStubs, not all properties
// Likely infeasible without mapped conditional types, per https://github.com/Microsoft/TypeScript/issues/12424
[P in keyof TType]: SinonStub;
};
}