1
- @module {bit-docs-process-tags/tag} bit-docs-js/tags/module @module
2
1
@parent bit-docs-js/tags
2
+ @module {bit-docs-process-tags/tag} bit-docs-js/tags/module @module
3
3
4
4
Declares the export value for a module.
5
5
6
6
@signature ` @module {TYPE} NAME [TITLE] `
7
7
8
- @ codestart
8
+ ``` js
9
9
/**
10
- * @module {{}} lib/componentProps props
11
- * @option {String} name The name of the component.
12
- * @option {String} title The title of the component.
13
- * |
14
- @codeend
10
+ * @module {{}} lib/settings settings
11
+ * @option {String} environment Production, development, or staging.
12
+ * @option {Number} requestTimeout How long to wait between requests.
13
+ */
14
+ export default {
15
+ environment: " production" ,
16
+ requestTimeout: 10000
17
+ }
18
+ ```
19
+
20
+ ``` js
21
+ // resulting docObject
22
+ {
23
+ " type" : " module" ,
24
+ " description" : " " ,
25
+ " title" : " settings" ,
26
+ " types" : [
27
+ {
28
+ " type" : " Object" ,
29
+ " options" : [
30
+ {
31
+ " name" : " environment" ,
32
+ " description" : " Production, development, or staging." ,
33
+ " types" : [
34
+ {
35
+ " type" : " String"
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ " name" : " requestTimeout" ,
41
+ " description" : " How long to wait between requests.\n " ,
42
+ " types" : [
43
+ {
44
+ " type" : " Number"
45
+ }
46
+ ]
47
+ }
48
+ ]
49
+ }
50
+ ],
51
+ " name" : " lib/settings"
52
+ }
53
+ ```
15
54
16
55
@param {bit-docs-type-annotate/typeExpression} [ TYPE] A
17
56
[ bit-docs-type-annotate/typeExpression type expression] . This is typically an
@@ -30,7 +69,7 @@ exports you might use as one of the following:
30
69
31
70
#### A single function export
32
71
33
- ```
72
+ ``` js
34
73
/**
35
74
* @module {function} multi/util/add
36
75
* @parent multi/modules
@@ -50,7 +89,7 @@ module.exports = function(first, second) {
50
89
51
90
#### Multiple export values
52
91
53
- ```
92
+ ``` js
54
93
/**
55
94
* @module {Module} multi/util/date-helpers
56
95
* @parent multi/modules
@@ -73,7 +112,7 @@ exports.yesterday = function() { ... };
73
112
74
113
#### A single constructor function export
75
114
76
- ```
115
+ ``` js
77
116
/**
78
117
* @module {function(new:multi/lib/graph)} multi/lib/graph
79
118
* @parent multi/modules
0 commit comments