-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create TypeScript definitions #3
Comments
Could you explain a bit more about what you're looking for via an example, please? |
Currently, to use rangy in a project which uses typescript (such as angular), you need to include the module separately and consume it in code like this:
This gives you no type information when using it, and you wind up having to depend heavily on the documentation to learn methods. It would be easy to start from the type definitions created by Rudolph Gottesheim here: These probably cover a good bit of the existing functionality already (though many of the modules are missing). To get started with this, it makes sense to create a new folder at the root called |
Thsi is great @ohze ! If you want to make a PR to add these definitions straight to rangy here, that would be great. Then we wouldn't even need to include @types/rangy to use them (people using the old |
Need to create / add typescript definitions during build (in /lib)
The text was updated successfully, but these errors were encountered: