From be4f4082cf4d418ce351a1e908877f3121c1a9ef Mon Sep 17 00:00:00 2001 From: Retsam Date: Wed, 6 Dec 2017 16:33:04 -0500 Subject: [PATCH] Add note about SinonStubbedInstance --- types/sinon/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) 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; }; }