Adding Typescript definition file

Added a typescript definition file for those using with typescript. Optional file, but could come in useful for some.