How can a namespace be documented in JavaScript using jsDoc?
Here is my attempt, is that right?
/** * My special namespace * * @name my.namespace * @namespace */ $namespace('my.namespace', /** @lends my.namespace **/ { /** * Foo - does something really neat... * @function */ foo: function() { } });
To clarify, the above is used as follows:
my.namespace.foo();
This feature is available in jsdoc3 micmath / jsdoc . Jsdoc3 syntax is different than jsdoc-toolkit (jsdoc2)
In the following example, Michael jsdoc and pseudo-spaces?
/** * Document me. * @namespace my */ /** * My special namespace * @namespace my.namespace */ $namespace('my.namespace', /** @lends my.namespace **/ { /** * Foo - does something really neat... */ foo: function() { } });
Source: https://habr.com/ru/post/895981/More articles:Running ASP Classic on IIS 7.5 - iisThe dynamic content of PHP, its storage and execution daily, and not every page load? - phpDifference between List and List ? - genericsThe initial error when compiling the C file on the command line VS2010 - cFinding / filtering a custom array of classes using NSPredicate - iosIs there a name for this type of binary search? - listUsing PDO to format mysql_connect correctly? - phpHow to use PHP stream_select () with zlib filter? - filterASP.NET localization: changing resources without restarting the application? - asp.netClass construction with initial values - c ++All Articles