Nodeclipse / nodeclipse

Nodeclipse-1 : Eclipse plugin for Node.js, PhantomJS development (Nodeclipse core plugin); Maven and Gradle (with Android) plugins
https://nodeclipse.github.io/
158 stars 76 forks source link

Improving Code Assist with TypeScript #24

Closed paulvi closed 6 years ago

paulvi commented 11 years ago

Related to #7 .

JavaScript lacks type definition. This problem is address in Microsoft TypeScript language. As I understand, they also provide files for common libraries with that information. The idea is to get those files and check if we can get some useful result from them (in a quick way)

paulvi commented 10 years ago

A large collection of declaration files for popular JavaScript libraries Example https://github.com/borisyankov/DefinitelyTyped/blob/master/node/node.d.ts

paulvi commented 10 years ago

All JavaScript engines for IDE spend a lot of efforts guessing type of JavaScript variable.

I believe with some Java parser for TypeScript and with over 100+ libraries descriptions https://github.com/borisyankov/DefinitelyTyped it would be possible to give quick implementation for simple completions for those libraries.

paulvi commented 10 years ago

ref https://github.com/marijnh/tern/issues/317

What about if we just use TypeScript definition files to describe external libraries APIs? There are a lot of those on Definitely Typed.

paulvi commented 6 years ago

closing as really really old