added TypeScript definition file

I've created a TypeScript definition file in order to work with your library in a type-safe way.