From 4bb4c29cad26ee049899b35da7d9502c3c73fde6 Mon Sep 17 00:00:00 2001 From: Umed Khudoiberdiev Date: Sat, 24 Sep 2016 17:03:26 +0500 Subject: [PATCH] fixes #11351 (#11453) --- sinon/sinon.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sinon/sinon.d.ts b/sinon/sinon.d.ts index 2596adf0ca..69647534de 100644 --- a/sinon/sinon.d.ts +++ b/sinon/sinon.d.ts @@ -3,6 +3,12 @@ // Definitions by: William Sears // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// sinon uses DOM dependencies which are absent in browserless envoronment like node.js +// to avoid compiler errors this monkey patch is used +// see more details in https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11351 +interface Event { } +interface Document { } + declare namespace Sinon { interface SinonSpyCallApi { // Properties