Simple type annotations in tern.js

I was looking for some time for the tern.js plugin that would allow me to use simple annotations of the inline type type:

var f = function(/* string */ a) { ... } 

This is a simple style that supports, for example, brackets.

I know that I can use the JSDoc plugin with tern.js, but this requires a slightly more detailed syntax, which is especially difficult to use in anonymous functions.

Is it possible to make a JSDoc plugin to analyze these simple annotations, or is there another plugin for this?

+4
source share

All Articles