diff --git a/types/sinon/index.d.ts b/types/sinon/index.d.ts index f711e374d1..2e8da07bef 100644 --- a/types/sinon/index.d.ts +++ b/types/sinon/index.d.ts @@ -559,6 +559,8 @@ declare namespace Sinon { * @template TType Object type being stubbed. */ type SinonStubbedInstance = { + // 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; }; }