Typescript declaration file

Used your shim in my typescript project. Good stuff!