-
Notifications
You must be signed in to change notification settings - Fork 27
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
TypeScript declaration #132
Comments
Nevermind, saw https://github.com/c2nes/javalang and couldn't resist: https://github.com/notEvil/PHONK/blob/ts_declarations/get_ts_declarations.py For people not familiar with Python, the easiest way to run this is: |
Hi @notEvil this sounds really amazing! This for sure will help to update the old docs, I'm a bit busy atm but I will try this and answer your other questions by the end of next week. |
Great, no hurry! I now use sshfs and Neovim as shown above, and it works quite well. Fyi I've changed the script a bit so it would export the documentation comments :) |
Hi,
I've been using the web editor but find the documentation to be outdated and the lack of autocompletion makes it unnecessarily difficult to get started.
So I looked for an alternative and found TS declaration files. The following script reads the relevant Java files in this repository and creates declarations which in turn provide type inference and autocompletion.
https://gitlab.com/-/snippets/2482545
In Neovim with Ycm
This is merely a proof-of-concept, expect wrong/generic types, missing method arguments, class boundary violations (nested classes), ...
I'm not familiar with Java, so I won't go any further with this, but you should have no trouble adjusting your documentation export to produce something along these lines.
The text was updated successfully, but these errors were encountered: