Skip to content

Instantly share code, notes, and snippets.

@Vanuan
Created October 17, 2012 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vanuan/3907142 to your computer and use it in GitHub Desktop.
Save Vanuan/3907142 to your computer and use it in GitHub Desktop.
JSDT type inference
/** @returns {HTMLAnchorElement} */
var link = document.createElement('a');
link.innerHTML = "";
/**
results in the following outline:
class link {
static innerHtml : String
}
object link : HTMLAnchorElement
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment