I am looking to make a pr that would rewrite this to use typescript. This wouldn't prevent javascript users from using the library, and would allow for users of typescript to easily use this and have better intellisense and type checking. Please let me know if this would be welcomed.