-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from tineheller/master
Fixes for callbacks and inner module members
- Loading branch information
Showing
3 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* @module myModule2 | ||
*/ | ||
/** | ||
* exported function | ||
* @function myFunction1 | ||
* @param {string} myString | ||
* @param {testCallback} myCallback | ||
* @static | ||
*/ | ||
/** | ||
* exported callback | ||
* @callback testCallback | ||
* @param {string} testCBParam | ||
* @static | ||
*/ | ||
|
||
/** | ||
* inner function | ||
* @function myFunction2 | ||
* @param {string} myString | ||
*/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* @module myModule3 | ||
*/ | ||
module.exports = { | ||
/** | ||
* exported function | ||
* @param {string} param1 | ||
* @return {string} | ||
*/ | ||
myFunction1: function(param1, color2) { | ||
// ... | ||
}, | ||
/** | ||
* inner function | ||
* @param {string} param2 | ||
* @inner | ||
*/ | ||
myFunction2: function(param2) { | ||
// ... | ||
}, | ||
}; |
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