-
Notifications
You must be signed in to change notification settings - Fork 12
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
Readme demo results in errors #12
Comments
How are you importing it? The readme shows:
Which would mean you may need to do this for import: import * as AvlTree from '@tyriar/avl-tree'; You could log/debug |
I copy/pasted the code 1:1 from the README file: see gist and executed it with |
Looks like the readme is a little out of date, the following works for me which has a change on the require line and also changes
FYI the module actually uses the TypeScript port at https://github.com/gwtw/ts-avl-tree, so |
Thanks. :-) Shall I make a patch? |
Sure, but I think the most correct thing to do would be call out this is mainly for education and recommend https://github.com/gwtw/ts-avl-tree instead actual usage |
I just wanted to try out the project and copy/pasted the example in the README-file.
Anything I can do to get this up and running?
The text was updated successfully, but these errors were encountered: