Last active
December 15, 2015 04:09
-
-
Save laurie71/5199985 to your computer and use it in GitHub Desktop.
JSDoc3 and CommonJS modules with aliased exports object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var module = exports; | |
module.Type1 = function() {}; | |
module.fn1 = function() {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* module1 docs | |
* @module module1 | |
*/ | |
/** | |
* module1:Type constructor docs | |
* @class | |
* module1:Type class docs | |
*/ | |
exports.Type1 = function() {}; | |
/** | |
* module1:fn1 docs | |
*/ | |
exports.fn1 = function() {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @exports module10 */ | |
var module10 = exports; | |
/** | |
* module10:Type constructor docs | |
* @class | |
* module10:Type class docs | |
*/ | |
module10.Type10 = function() {}; | |
/** | |
* module10:fn10 docs | |
*/ | |
module10.fn10 = function() {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @exports my/module11 */ | |
var module11 = exports; | |
/** | |
* module11:Type constructor docs | |
* @class | |
* module11:Type class docs | |
*/ | |
module11.Type11 = function() {}; | |
/** | |
* module11:fn11 docs | |
*/ | |
module11.fn11 = function() {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* module2 docs | |
* @module module2 | |
*/ | |
var module2 = exports; | |
/** | |
* module2:Type constructor docs | |
* @class | |
* module2:Type class docs | |
*/ | |
module2.Type2 = function() {}; | |
/** | |
* module2:fn2 docs | |
*/ | |
module2.fn2 = function() {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* module3 docs | |
* @module module3 | |
* xxx | |
*/ | |
var module3 = exports; | |
/** | |
* module3:Type constructor docs | |
* @class | |
* module3:Type class docs | |
*/ | |
module3.Type3 = function() {}; | |
/** | |
* module3:fn3 docs | |
*/ | |
module3.fn3 = function() {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* module4 docs | |
* @module module4 | |
* @alias module:module4 | |
*/ | |
var module4 = exports; | |
/** | |
* module4:Type constructor docs | |
* @class | |
* module4:Type class docs | |
*/ | |
module4.Type4 = function() {}; | |
/** | |
* module4:fn4 docs | |
*/ | |
module4.fn4 = function() {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* module5 docs | |
* @module module5 | |
*/ | |
/** | |
* @alias module:module5 | |
*/ | |
var module5 = exports; | |
/** | |
* module5:Type constructor docs | |
* @class | |
* module5:Type class docs | |
*/ | |
module5.Type5 = function() {}; | |
/** | |
* module5:fn5 docs | |
*/ | |
module5.fn5 = function() {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* module6 docs | |
* @name module6 | |
* @module module6 | |
* @namespace | |
*/ | |
var module6 = exports; | |
/** | |
* module6:Type constructor docs | |
* @class | |
* module6:Type class docs | |
*/ | |
module6.Type6 = function() {}; | |
/** | |
* module6:fn6 docs | |
*/ | |
module6.fn6 = function() {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* module7 docs | |
* @module module7 | |
*/ | |
/** | |
* @namespace | |
*/ | |
var module7 = exports; | |
/** | |
* module7:Type constructor docs | |
* @class | |
* module7:Type class docs | |
*/ | |
module7.Type7 = function() {}; | |
/** | |
* module7:fn7 docs | |
*/ | |
module7.fn7 = function() {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* module8 docs | |
* @module module8 | |
*/ | |
/** | |
* @exports module8 as module:module8 | |
*/ | |
var module8 = exports; | |
/** | |
* module8:Type constructor docs | |
* @class | |
* module8:Type class docs | |
*/ | |
module8.Type8 = function() {}; | |
/** | |
* module8:fn8 docs | |
*/ | |
module8.fn8 = function() {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* module9 docs | |
* @module module9 | |
*/ | |
/** @exports module9 */ | |
var module9 = exports; | |
/** | |
* module9:Type constructor docs | |
* @class | |
* module9:Type class docs | |
*/ | |
module9.Type9 = function() {}; | |
/** | |
* module9:fn9 docs | |
*/ | |
module9.fn9 = function() {}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment