Skip to content

TypeScript declaration #132

@notEvil

Description

@notEvil

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
Screenshot from 2023-01-10 17-37-38
Screenshot from 2023-01-10 17-38-21

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions