I have installed zepto and @types/zepto packages in npm. If I install only zepto without types and import it like this:
import * as $ from 'zepto';
Everything works. But if I install @types/zepto as well, it's presence in the node_modules directory somehow breaks it. It says "@types/zepto/index.d.ts is not module". How do I load type definitions for Zepto?
This is probably worth a read for you. It will explain how type files work.
If you put this fine in your types folder in your project it should work just fine.