Add new variable type in JSDoc

Feature requests

Add new variable type in JSDoc

Postby sergey_che » Fri Apr 25, 2008 9:55 am

It will be great help for development if you'll add new variable type is JSDoc to pass information about objects, created in runtime, between functions. It may look something like this:

Code: Select all
function myObj(){
   var item = 1;
   return {
      getItem: function(){
         return item;
      }
   }
}

/**
* @param {myObj()} b
*/
function myFunc(b){
   b. // <-- show code assist here about object, created in myObj()
}
sergey_che
 
Posts: 14
Joined: Tue Mar 11, 2008 10:04 am

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 0 guests

cron