You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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.
Activity
paulvi commentedon Mar 21, 2014
A large collection of declaration files for popular JavaScript libraries
Example https://github.com/borisyankov/DefinitelyTyped/blob/master/node/node.d.ts
#24 Improving Code Assist with TypeScript
paulvi commentedon May 23, 2014
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 commentedon May 23, 2014
ref ternjs/tern#317
paulvi commentedon Jan 11, 2018
closing as really really old