javascript annotations
snippet in javascript

javascript annotations

user6210

// Of course JavaScript doesn't have them, but are there additional libraries or proposed language extension, for example

//Example: 
@type {folder.otherjsmodule.foo}
function(){
    foo = folder.otherjsmodule.foo();
    ...
    return foo;
};

//Source: https://stackoverflow.com/questions/17065949/javascript-annotations