you need to change this line to "declare var sinon: SinonStatic;"