Skip to content

Custom member types

nene edited this page Feb 21, 2013 · 7 revisions

Let's define a @constant tag. It should work pretty much like @property, but with the semantic difference of documenting unchangable values. For example:

/**
 * @constant
 * Acceleration of objects in Earth's gravitational field.
 */
var ACCELERATION = 9.80665;
Clone this wiki locally