@storybook/react 7.0.0-alpha.7 → 7.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/dist/chunk-LSK4KSW4.mjs +1 -0
  2. package/dist/config.d.ts +11 -13
  3. package/dist/config.js +3 -7
  4. package/dist/config.mjs +3 -7
  5. package/dist/index.d.ts +57 -37
  6. package/dist/index.js +1 -1
  7. package/dist/index.mjs +1 -1
  8. package/dist/types-0a347bb9.d.ts +10 -0
  9. package/jest.config.js +7 -0
  10. package/package.json +27 -22
  11. package/template/cli/.eslintrc.json +5 -0
  12. package/template/cli/js/Button.jsx +50 -0
  13. package/template/cli/js/Button.stories.js +39 -0
  14. package/template/cli/js/Header.jsx +59 -0
  15. package/template/cli/js/Header.stories.js +22 -0
  16. package/template/cli/js/Page.jsx +69 -0
  17. package/template/cli/js/Page.stories.js +25 -0
  18. package/template/cli/ts/Button.stories.ts +44 -0
  19. package/template/cli/ts/Button.tsx +48 -0
  20. package/template/cli/ts/Header.stories.ts +26 -0
  21. package/template/cli/ts/Header.tsx +56 -0
  22. package/template/cli/ts/Page.stories.ts +29 -0
  23. package/template/cli/ts/Page.tsx +73 -0
  24. package/template/cli/ts-legacy/Button.stories.ts +45 -0
  25. package/template/cli/ts-legacy/Button.tsx +48 -0
  26. package/template/cli/ts-legacy/Header.stories.ts +24 -0
  27. package/template/cli/ts-legacy/Header.tsx +56 -0
  28. package/template/cli/ts-legacy/Page.stories.ts +29 -0
  29. package/template/cli/ts-legacy/Page.tsx +73 -0
  30. package/template/components/Button.jsx +13 -0
  31. package/template/components/Form.jsx +36 -0
  32. package/template/components/Html.jsx +9 -0
  33. package/template/components/Pre.jsx +20 -0
  34. package/template/components/index.js +9 -0
  35. package/template/stories/decorators.stories.tsx +28 -0
  36. package/template/stories/docgen-components/10017-ts-union/argTypes.snapshot +36 -0
  37. package/template/stories/docgen-components/10017-ts-union/docgen.snapshot +34 -0
  38. package/template/stories/docgen-components/10017-ts-union/input.tsx +12 -0
  39. package/template/stories/docgen-components/10017-ts-union/properties.snapshot +32 -0
  40. package/template/stories/docgen-components/10278-ts-multiple-components/argTypes.snapshot +26 -0
  41. package/template/stories/docgen-components/10278-ts-multiple-components/docgen.snapshot +49 -0
  42. package/template/stories/docgen-components/10278-ts-multiple-components/input.tsx +27 -0
  43. package/template/stories/docgen-components/10278-ts-multiple-components/properties.snapshot +22 -0
  44. package/template/stories/docgen-components/8140-js-prop-types-oneof/argTypes.snapshot +127 -0
  45. package/template/stories/docgen-components/8140-js-prop-types-oneof/docgen.snapshot +97 -0
  46. package/template/stories/docgen-components/8140-js-prop-types-oneof/input.jsx +27 -0
  47. package/template/stories/docgen-components/8140-js-prop-types-oneof/properties.snapshot +89 -0
  48. package/template/stories/docgen-components/8143-ts-imported-types/argTypes.snapshot +27 -0
  49. package/template/stories/docgen-components/8143-ts-imported-types/docgen.snapshot +22 -0
  50. package/template/stories/docgen-components/8143-ts-imported-types/input.tsx +10 -0
  51. package/template/stories/docgen-components/8143-ts-imported-types/properties.snapshot +23 -0
  52. package/template/stories/docgen-components/8143-ts-imported-types/types.ts +3 -0
  53. package/template/stories/docgen-components/8143-ts-react-fc-generics/argTypes.snapshot +27 -0
  54. package/template/stories/docgen-components/8143-ts-react-fc-generics/docgen.snapshot +24 -0
  55. package/template/stories/docgen-components/8143-ts-react-fc-generics/input.tsx +10 -0
  56. package/template/stories/docgen-components/8143-ts-react-fc-generics/properties.snapshot +21 -0
  57. package/template/stories/docgen-components/8428-js-static-prop-types/argTypes.snapshot +25 -0
  58. package/template/stories/docgen-components/8428-js-static-prop-types/docgen.snapshot +39 -0
  59. package/template/stories/docgen-components/8428-js-static-prop-types/input.jsx +20 -0
  60. package/template/stories/docgen-components/8428-js-static-prop-types/properties.snapshot +21 -0
  61. package/template/stories/docgen-components/8740-ts-multi-props/argTypes.snapshot +27 -0
  62. package/template/stories/docgen-components/8740-ts-multi-props/docgen.snapshot +49 -0
  63. package/template/stories/docgen-components/8740-ts-multi-props/input.tsx +23 -0
  64. package/template/stories/docgen-components/8740-ts-multi-props/properties.snapshot +21 -0
  65. package/template/stories/docgen-components/8894-9511-ts-forward-ref/argTypes.snapshot +48 -0
  66. package/template/stories/docgen-components/8894-9511-ts-forward-ref/docgen.snapshot +39 -0
  67. package/template/stories/docgen-components/8894-9511-ts-forward-ref/input.tsx +31 -0
  68. package/template/stories/docgen-components/8894-9511-ts-forward-ref/properties.snapshot +34 -0
  69. package/template/stories/docgen-components/9023-js-hoc/argTypes.snapshot +89 -0
  70. package/template/stories/docgen-components/9023-js-hoc/docgen.snapshot +84 -0
  71. package/template/stories/docgen-components/9023-js-hoc/input.jsx +40 -0
  72. package/template/stories/docgen-components/9023-js-hoc/properties.snapshot +67 -0
  73. package/template/stories/docgen-components/9399-js-proptypes-shape/argTypes.snapshot +39 -0
  74. package/template/stories/docgen-components/9399-js-proptypes-shape/docgen.snapshot +48 -0
  75. package/template/stories/docgen-components/9399-js-proptypes-shape/input.jsx +16 -0
  76. package/template/stories/docgen-components/9399-js-proptypes-shape/properties.snapshot +35 -0
  77. package/template/stories/docgen-components/9465-ts-type-props/argTypes.snapshot +28 -0
  78. package/template/stories/docgen-components/9465-ts-type-props/docgen.snapshot +33 -0
  79. package/template/stories/docgen-components/9465-ts-type-props/input.tsx +12 -0
  80. package/template/stories/docgen-components/9465-ts-type-props/properties.snapshot +24 -0
  81. package/template/stories/docgen-components/9493-ts-display-name/argTypes.snapshot +62 -0
  82. package/template/stories/docgen-components/9493-ts-display-name/docgen.snapshot +50 -0
  83. package/template/stories/docgen-components/9493-ts-display-name/input.tsx +30 -0
  84. package/template/stories/docgen-components/9493-ts-display-name/properties.snapshot +52 -0
  85. package/template/stories/docgen-components/9556-ts-react-default-exports/argTypes.snapshot +28 -0
  86. package/template/stories/docgen-components/9556-ts-react-default-exports/docgen.snapshot +32 -0
  87. package/template/stories/docgen-components/9556-ts-react-default-exports/input.tsx +12 -0
  88. package/template/stories/docgen-components/9556-ts-react-default-exports/properties.snapshot +24 -0
  89. package/template/stories/docgen-components/9575-ts-camel-case/argTypes.snapshot +28 -0
  90. package/template/stories/docgen-components/9575-ts-camel-case/docgen.snapshot +38 -0
  91. package/template/stories/docgen-components/9575-ts-camel-case/input.tsx +26 -0
  92. package/template/stories/docgen-components/9575-ts-camel-case/properties.snapshot +24 -0
  93. package/template/stories/docgen-components/9586-js-react-memo/argTypes.snapshot +41 -0
  94. package/template/stories/docgen-components/9586-js-react-memo/docgen.snapshot +42 -0
  95. package/template/stories/docgen-components/9586-js-react-memo/input.jsx +15 -0
  96. package/template/stories/docgen-components/9586-js-react-memo/properties.snapshot +34 -0
  97. package/template/stories/docgen-components/9591-ts-import-types/Bar.tsx +3 -0
  98. package/template/stories/docgen-components/9591-ts-import-types/argTypes.snapshot +25 -0
  99. package/template/stories/docgen-components/9591-ts-import-types/docgen.snapshot +21 -0
  100. package/template/stories/docgen-components/9591-ts-import-types/input.tsx +10 -0
  101. package/template/stories/docgen-components/9591-ts-import-types/properties.snapshot +21 -0
  102. package/template/stories/docgen-components/9626-js-default-values/argTypes.snapshot +27 -0
  103. package/template/stories/docgen-components/9626-js-default-values/docgen.snapshot +25 -0
  104. package/template/stories/docgen-components/9626-js-default-values/input.jsx +5 -0
  105. package/template/stories/docgen-components/9626-js-default-values/properties.snapshot +21 -0
  106. package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/argTypes.snapshot +42 -0
  107. package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/docgen.snapshot +36 -0
  108. package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/input.jsx +13 -0
  109. package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/properties.snapshot +35 -0
  110. package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/argTypes.snapshot +53 -0
  111. package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/docgen.snapshot +45 -0
  112. package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/input.tsx +18 -0
  113. package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/properties.snapshot +43 -0
  114. package/template/stories/docgen-components/9764-ts-extend-props/argTypes.snapshot +72 -0
  115. package/template/stories/docgen-components/9764-ts-extend-props/docgen.snapshot +41 -0
  116. package/template/stories/docgen-components/9764-ts-extend-props/input.tsx +17 -0
  117. package/template/stories/docgen-components/9764-ts-extend-props/properties.snapshot +56 -0
  118. package/template/stories/docgen-components/9827-ts-default-values/argTypes.snapshot +72 -0
  119. package/template/stories/docgen-components/9827-ts-default-values/docgen.snapshot +52 -0
  120. package/template/stories/docgen-components/9827-ts-default-values/input.tsx +17 -0
  121. package/template/stories/docgen-components/9827-ts-default-values/properties.snapshot +56 -0
  122. package/template/stories/docgen-components/9832-ts-enum-export/argTypes.snapshot +3 -0
  123. package/template/stories/docgen-components/9832-ts-enum-export/docgen.snapshot +16 -0
  124. package/template/stories/docgen-components/9832-ts-enum-export/input.tsx +8 -0
  125. package/template/stories/docgen-components/9832-ts-enum-export/properties.snapshot +7 -0
  126. package/template/stories/docgen-components/9922-ts-component-props/argTypes.snapshot +25 -0
  127. package/template/stories/docgen-components/9922-ts-component-props/docgen.snapshot +35 -0
  128. package/template/stories/docgen-components/9922-ts-component-props/input.tsx +24 -0
  129. package/template/stories/docgen-components/9922-ts-component-props/properties.snapshot +21 -0
  130. package/template/stories/docgen-components/imported.js +1 -0
  131. package/template/stories/docgen-components/js-class-component/argTypes.snapshot +386 -0
  132. package/template/stories/docgen-components/js-class-component/docgen.snapshot +252 -0
  133. package/template/stories/docgen-components/js-class-component/input.jsx +57 -0
  134. package/template/stories/docgen-components/js-class-component/properties.snapshot +286 -0
  135. package/template/stories/docgen-components/js-function-component/argTypes.snapshot +386 -0
  136. package/template/stories/docgen-components/js-function-component/docgen.snapshot +236 -0
  137. package/template/stories/docgen-components/js-function-component/input.jsx +50 -0
  138. package/template/stories/docgen-components/js-function-component/properties.snapshot +286 -0
  139. package/template/stories/docgen-components/js-function-component-inline-defaults/argTypes.snapshot +386 -0
  140. package/template/stories/docgen-components/js-function-component-inline-defaults/docgen.snapshot +247 -0
  141. package/template/stories/docgen-components/js-function-component-inline-defaults/input.jsx +65 -0
  142. package/template/stories/docgen-components/js-function-component-inline-defaults/properties.snapshot +286 -0
  143. package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/argTypes.snapshot +237 -0
  144. package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/docgen.snapshot +124 -0
  145. package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/input.jsx +41 -0
  146. package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/properties.snapshot +151 -0
  147. package/template/stories/docgen-components/js-proptypes/docgen.snapshot +1770 -0
  148. package/template/stories/docgen-components/js-proptypes/ext.js +13 -0
  149. package/template/stories/docgen-components/js-proptypes/input.jsx +497 -0
  150. package/template/stories/docgen-components/jsdoc/argTypes.snapshot +969 -0
  151. package/template/stories/docgen-components/jsdoc/docgen.snapshot +548 -0
  152. package/template/stories/docgen-components/jsdoc/input.jsx +231 -0
  153. package/template/stories/docgen-components/jsdoc/properties.snapshot +857 -0
  154. package/template/stories/docgen-components/ts-function-component/argTypes.snapshot +396 -0
  155. package/template/stories/docgen-components/ts-function-component/docgen.snapshot +241 -0
  156. package/template/stories/docgen-components/ts-function-component/input.tsx +52 -0
  157. package/template/stories/docgen-components/ts-function-component/properties.snapshot +296 -0
  158. package/template/stories/docgen-components/ts-function-component-inline-defaults/argTypes.snapshot +279 -0
  159. package/template/stories/docgen-components/ts-function-component-inline-defaults/docgen.snapshot +151 -0
  160. package/template/stories/docgen-components/ts-function-component-inline-defaults/input.tsx +80 -0
  161. package/template/stories/docgen-components/ts-function-component-inline-defaults/properties.snapshot +177 -0
  162. package/template/stories/docgen-components/ts-html/argTypes.snapshot +3 -0
  163. package/template/stories/docgen-components/ts-html/docgen.snapshot +12 -0
  164. package/template/stories/docgen-components/ts-html/input.tsx +12 -0
  165. package/template/stories/docgen-components/ts-html/properties.snapshot +7 -0
  166. package/template/stories/docgen-components/ts-jsdoc/argTypes.snapshot +3 -0
  167. package/template/stories/docgen-components/ts-jsdoc/docgen.snapshot +21 -0
  168. package/template/stories/docgen-components/ts-jsdoc/input.tsx +27 -0
  169. package/template/stories/docgen-components/ts-jsdoc/properties.snapshot +7 -0
  170. package/template/stories/docgen-components/ts-types/argTypes.snapshot +656 -0
  171. package/template/stories/docgen-components/ts-types/docgen.snapshot +317 -0
  172. package/template/stories/docgen-components/ts-types/input.tsx +130 -0
  173. package/template/stories/docgen-components/ts-types/properties.snapshot +410 -0
  174. package/template/stories/errors.stories.tsx +37 -0
  175. package/template/stories/hooks.stories.tsx +17 -0
  176. package/template/stories/js-argtypes.stories.jsx +91 -0
  177. package/template/stories/react-mdx.stories.mdx +26 -0
  178. package/template/stories/ts-argtypes.stories.tsx +81 -0
  179. package/LICENSE +0 -21
  180. package/dist/chunk-DGYCFUMN.mjs +0 -1
  181. package/dist/types-9f8d440a.d.ts +0 -17
@@ -0,0 +1,857 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`react component properties jsdoc 1`] = `
4
+ Object {
5
+ "rows": Array [
6
+ Object {
7
+ "defaultValue": null,
8
+ "description": "simple description.",
9
+ "name": "case1",
10
+ "required": false,
11
+ "sbType": Object {
12
+ "name": "string",
13
+ },
14
+ "type": Object {
15
+ "detail": undefined,
16
+ "summary": "string",
17
+ },
18
+ },
19
+ Object {
20
+ "defaultValue": null,
21
+ "description": "multi
22
+ lines
23
+ description",
24
+ "name": "case2",
25
+ "required": false,
26
+ "sbType": Object {
27
+ "name": "string",
28
+ },
29
+ "type": Object {
30
+ "detail": undefined,
31
+ "summary": "string",
32
+ },
33
+ },
34
+ Object {
35
+ "defaultValue": null,
36
+ "description": "*description* **with** \`formatting\`",
37
+ "name": "case3",
38
+ "required": false,
39
+ "sbType": Object {
40
+ "name": "string",
41
+ },
42
+ "type": Object {
43
+ "detail": undefined,
44
+ "summary": "string",
45
+ },
46
+ },
47
+ Object {
48
+ "defaultValue": null,
49
+ "description": "simple description and dummy JSDoc tag.",
50
+ "jsDocTags": Object {
51
+ "params": Array [
52
+ Object {
53
+ "description": null,
54
+ "name": "event",
55
+ },
56
+ ],
57
+ "returns": false,
58
+ },
59
+ "name": "case4",
60
+ "required": false,
61
+ "sbType": Object {
62
+ "name": "string",
63
+ },
64
+ "type": Object {
65
+ "detail": undefined,
66
+ "summary": "string",
67
+ },
68
+ },
69
+ Object {
70
+ "defaultValue": null,
71
+ "description": "",
72
+ "jsDocTags": Object {
73
+ "params": Array [
74
+ Object {
75
+ "description": null,
76
+ "name": "event",
77
+ },
78
+ ],
79
+ "returns": false,
80
+ },
81
+ "name": "case5",
82
+ "required": false,
83
+ "sbType": Object {
84
+ "name": "string",
85
+ },
86
+ "type": Object {
87
+ "detail": undefined,
88
+ "summary": "string",
89
+ },
90
+ },
91
+ Object {
92
+ "defaultValue": null,
93
+ "description": "simple description with a @.",
94
+ "name": "case6",
95
+ "required": false,
96
+ "sbType": Object {
97
+ "name": "string",
98
+ },
99
+ "type": Object {
100
+ "detail": undefined,
101
+ "summary": "string",
102
+ },
103
+ },
104
+ Object {
105
+ "defaultValue": null,
106
+ "description": "",
107
+ "name": "case7",
108
+ "required": false,
109
+ "sbType": Object {
110
+ "name": "function",
111
+ },
112
+ "type": Object {
113
+ "detail": undefined,
114
+ "summary": "func",
115
+ },
116
+ },
117
+ Object {
118
+ "defaultValue": null,
119
+ "description": "func with a simple description.",
120
+ "name": "case8",
121
+ "required": false,
122
+ "sbType": Object {
123
+ "name": "function",
124
+ },
125
+ "type": Object {
126
+ "detail": undefined,
127
+ "summary": "func",
128
+ },
129
+ },
130
+ Object {
131
+ "defaultValue": null,
132
+ "description": "",
133
+ "jsDocTags": Object {
134
+ "params": Array [
135
+ Object {
136
+ "description": null,
137
+ "name": "event",
138
+ },
139
+ ],
140
+ "returns": false,
141
+ },
142
+ "name": "case9",
143
+ "required": false,
144
+ "sbType": Object {
145
+ "name": "function",
146
+ },
147
+ "type": Object {
148
+ "detail": undefined,
149
+ "summary": "(event)",
150
+ },
151
+ },
152
+ Object {
153
+ "defaultValue": null,
154
+ "description": "param with name",
155
+ "jsDocTags": Object {
156
+ "params": Array [
157
+ Object {
158
+ "description": null,
159
+ "name": "event",
160
+ },
161
+ ],
162
+ "returns": false,
163
+ },
164
+ "name": "case10",
165
+ "required": false,
166
+ "sbType": Object {
167
+ "name": "function",
168
+ },
169
+ "type": Object {
170
+ "detail": undefined,
171
+ "summary": "(event)",
172
+ },
173
+ },
174
+ Object {
175
+ "defaultValue": null,
176
+ "description": "param with name & type",
177
+ "jsDocTags": Object {
178
+ "params": Array [
179
+ Object {
180
+ "description": null,
181
+ "name": "event",
182
+ },
183
+ ],
184
+ "returns": false,
185
+ },
186
+ "name": "case11",
187
+ "required": false,
188
+ "sbType": Object {
189
+ "name": "function",
190
+ },
191
+ "type": Object {
192
+ "detail": undefined,
193
+ "summary": "(event: SyntheticEvent)",
194
+ },
195
+ },
196
+ Object {
197
+ "defaultValue": null,
198
+ "description": "param with name, type & description",
199
+ "jsDocTags": Object {
200
+ "params": Array [
201
+ Object {
202
+ "description": "React's original event",
203
+ "name": "event",
204
+ },
205
+ ],
206
+ "returns": false,
207
+ },
208
+ "name": "case12",
209
+ "required": false,
210
+ "sbType": Object {
211
+ "name": "function",
212
+ },
213
+ "type": Object {
214
+ "detail": undefined,
215
+ "summary": "(event: SyntheticEvent)",
216
+ },
217
+ },
218
+ Object {
219
+ "defaultValue": null,
220
+ "description": "param with type",
221
+ "jsDocTags": Object {
222
+ "params": Array [
223
+ Object {
224
+ "description": null,
225
+ "name": "SyntheticEvent",
226
+ },
227
+ ],
228
+ "returns": false,
229
+ },
230
+ "name": "case13",
231
+ "required": false,
232
+ "sbType": Object {
233
+ "name": "function",
234
+ },
235
+ "type": Object {
236
+ "detail": undefined,
237
+ "summary": "(SyntheticEvent)",
238
+ },
239
+ },
240
+ Object {
241
+ "defaultValue": null,
242
+ "description": "param with type & description",
243
+ "name": "case14",
244
+ "required": false,
245
+ "sbType": Object {
246
+ "name": "function",
247
+ },
248
+ "type": Object {
249
+ "detail": undefined,
250
+ "summary": "func",
251
+ },
252
+ },
253
+ Object {
254
+ "defaultValue": null,
255
+ "description": "param with name & description",
256
+ "jsDocTags": Object {
257
+ "params": Array [
258
+ Object {
259
+ "description": "React's original event",
260
+ "name": "event",
261
+ },
262
+ ],
263
+ "returns": false,
264
+ },
265
+ "name": "case15",
266
+ "required": false,
267
+ "sbType": Object {
268
+ "name": "function",
269
+ },
270
+ "type": Object {
271
+ "detail": undefined,
272
+ "summary": "(event)",
273
+ },
274
+ },
275
+ Object {
276
+ "defaultValue": null,
277
+ "description": "autofix event-",
278
+ "jsDocTags": Object {
279
+ "params": Array [
280
+ Object {
281
+ "description": "React's original event",
282
+ "name": "event",
283
+ },
284
+ ],
285
+ "returns": false,
286
+ },
287
+ "name": "case16",
288
+ "required": false,
289
+ "sbType": Object {
290
+ "name": "function",
291
+ },
292
+ "type": Object {
293
+ "detail": undefined,
294
+ "summary": "(event)",
295
+ },
296
+ },
297
+ Object {
298
+ "defaultValue": null,
299
+ "description": "autofix event.",
300
+ "jsDocTags": Object {
301
+ "params": Array [
302
+ Object {
303
+ "description": null,
304
+ "name": "event",
305
+ },
306
+ ],
307
+ "returns": Object {
308
+ "description": null,
309
+ },
310
+ },
311
+ "name": "case17",
312
+ "required": false,
313
+ "sbType": Object {
314
+ "name": "function",
315
+ },
316
+ "type": Object {
317
+ "detail": undefined,
318
+ "summary": "(event) => string",
319
+ },
320
+ },
321
+ Object {
322
+ "defaultValue": null,
323
+ "description": "with an empty param.",
324
+ "name": "case18",
325
+ "required": false,
326
+ "sbType": Object {
327
+ "name": "function",
328
+ },
329
+ "type": Object {
330
+ "detail": undefined,
331
+ "summary": "func",
332
+ },
333
+ },
334
+ Object {
335
+ "defaultValue": null,
336
+ "description": "with multiple empty params.",
337
+ "name": "case19",
338
+ "required": false,
339
+ "sbType": Object {
340
+ "name": "function",
341
+ },
342
+ "type": Object {
343
+ "detail": undefined,
344
+ "summary": "func",
345
+ },
346
+ },
347
+ Object {
348
+ "defaultValue": null,
349
+ "description": "with arg alias.",
350
+ "jsDocTags": Object {
351
+ "params": Array [
352
+ Object {
353
+ "description": null,
354
+ "name": "event",
355
+ },
356
+ ],
357
+ "returns": false,
358
+ },
359
+ "name": "case20",
360
+ "required": false,
361
+ "sbType": Object {
362
+ "name": "function",
363
+ },
364
+ "type": Object {
365
+ "detail": undefined,
366
+ "summary": "(event)",
367
+ },
368
+ },
369
+ Object {
370
+ "defaultValue": null,
371
+ "description": "with argument alias.",
372
+ "jsDocTags": Object {
373
+ "params": Array [
374
+ Object {
375
+ "description": null,
376
+ "name": "event",
377
+ },
378
+ ],
379
+ "returns": false,
380
+ },
381
+ "name": "case21",
382
+ "required": false,
383
+ "sbType": Object {
384
+ "name": "function",
385
+ },
386
+ "type": Object {
387
+ "detail": undefined,
388
+ "summary": "(event)",
389
+ },
390
+ },
391
+ Object {
392
+ "defaultValue": null,
393
+ "description": "with multiple params.",
394
+ "jsDocTags": Object {
395
+ "params": Array [
396
+ Object {
397
+ "description": null,
398
+ "name": "event",
399
+ },
400
+ Object {
401
+ "description": null,
402
+ "name": "stringValue",
403
+ },
404
+ Object {
405
+ "description": null,
406
+ "name": "numberValue",
407
+ },
408
+ ],
409
+ "returns": false,
410
+ },
411
+ "name": "case22",
412
+ "required": false,
413
+ "sbType": Object {
414
+ "name": "function",
415
+ },
416
+ "type": Object {
417
+ "detail": undefined,
418
+ "summary": "(event: SyntheticEvent, stringValue: string, numberValue: number)",
419
+ },
420
+ },
421
+ Object {
422
+ "defaultValue": null,
423
+ "description": "with an empty returns",
424
+ "name": "case23",
425
+ "required": false,
426
+ "sbType": Object {
427
+ "name": "function",
428
+ },
429
+ "type": Object {
430
+ "detail": undefined,
431
+ "summary": "func",
432
+ },
433
+ },
434
+ Object {
435
+ "defaultValue": null,
436
+ "description": "with a returns with a type",
437
+ "jsDocTags": Object {
438
+ "params": false,
439
+ "returns": Object {
440
+ "description": null,
441
+ },
442
+ },
443
+ "name": "case24",
444
+ "required": false,
445
+ "sbType": Object {
446
+ "name": "function",
447
+ },
448
+ "type": Object {
449
+ "detail": undefined,
450
+ "summary": "() => SyntheticEvent",
451
+ },
452
+ },
453
+ Object {
454
+ "defaultValue": null,
455
+ "description": "with a returns with a type & description",
456
+ "jsDocTags": Object {
457
+ "params": false,
458
+ "returns": Object {
459
+ "description": "React's original event",
460
+ },
461
+ },
462
+ "name": "case25",
463
+ "required": false,
464
+ "sbType": Object {
465
+ "name": "function",
466
+ },
467
+ "type": Object {
468
+ "detail": undefined,
469
+ "summary": "() => SyntheticEvent",
470
+ },
471
+ },
472
+ Object {
473
+ "defaultValue": null,
474
+ "description": "single param and a returns",
475
+ "jsDocTags": Object {
476
+ "params": Array [
477
+ Object {
478
+ "description": null,
479
+ "name": "stringValue",
480
+ },
481
+ ],
482
+ "returns": Object {
483
+ "description": "React's original event",
484
+ },
485
+ },
486
+ "name": "case26",
487
+ "required": false,
488
+ "sbType": Object {
489
+ "name": "function",
490
+ },
491
+ "type": Object {
492
+ "detail": undefined,
493
+ "summary": "(stringValue: string) => SyntheticEvent",
494
+ },
495
+ },
496
+ Object {
497
+ "defaultValue": null,
498
+ "description": "multiple params and a returns",
499
+ "jsDocTags": Object {
500
+ "params": Array [
501
+ Object {
502
+ "description": null,
503
+ "name": "stringValue",
504
+ },
505
+ Object {
506
+ "description": null,
507
+ "name": "numberValue",
508
+ },
509
+ ],
510
+ "returns": Object {
511
+ "description": "React's original event",
512
+ },
513
+ },
514
+ "name": "case27",
515
+ "required": false,
516
+ "sbType": Object {
517
+ "name": "function",
518
+ },
519
+ "type": Object {
520
+ "detail": undefined,
521
+ "summary": "(stringValue: string, numberValue: number) => SyntheticEvent",
522
+ },
523
+ },
524
+ Object {
525
+ "defaultValue": null,
526
+ "description": "multiple returns",
527
+ "jsDocTags": Object {
528
+ "params": false,
529
+ "returns": Object {
530
+ "description": "Second returns",
531
+ },
532
+ },
533
+ "name": "case28",
534
+ "required": false,
535
+ "sbType": Object {
536
+ "name": "function",
537
+ },
538
+ "type": Object {
539
+ "detail": undefined,
540
+ "summary": "() => string",
541
+ },
542
+ },
543
+ Object {
544
+ "defaultValue": null,
545
+ "description": "param with unsupported JSDoc tags",
546
+ "jsDocTags": Object {
547
+ "params": Array [
548
+ Object {
549
+ "description": "React's original event",
550
+ "name": "event",
551
+ },
552
+ ],
553
+ "returns": false,
554
+ },
555
+ "name": "case29",
556
+ "required": false,
557
+ "sbType": Object {
558
+ "name": "function",
559
+ },
560
+ "type": Object {
561
+ "detail": undefined,
562
+ "summary": "(event: SyntheticEvent)",
563
+ },
564
+ },
565
+ Object {
566
+ "defaultValue": null,
567
+ "description": "param record type",
568
+ "jsDocTags": Object {
569
+ "params": Array [
570
+ Object {
571
+ "description": null,
572
+ "name": "myType",
573
+ },
574
+ ],
575
+ "returns": false,
576
+ },
577
+ "name": "case30",
578
+ "required": false,
579
+ "sbType": Object {
580
+ "name": "function",
581
+ },
582
+ "type": Object {
583
+ "detail": undefined,
584
+ "summary": "(myType: ({a: number, b: string}))",
585
+ },
586
+ },
587
+ Object {
588
+ "defaultValue": null,
589
+ "description": "param array type",
590
+ "jsDocTags": Object {
591
+ "params": Array [
592
+ Object {
593
+ "description": null,
594
+ "name": "myType",
595
+ },
596
+ ],
597
+ "returns": false,
598
+ },
599
+ "name": "case31",
600
+ "required": false,
601
+ "sbType": Object {
602
+ "name": "function",
603
+ },
604
+ "type": Object {
605
+ "detail": undefined,
606
+ "summary": "(myType: string[])",
607
+ },
608
+ },
609
+ Object {
610
+ "defaultValue": null,
611
+ "description": "param union type",
612
+ "jsDocTags": Object {
613
+ "params": Array [
614
+ Object {
615
+ "description": null,
616
+ "name": "myType",
617
+ },
618
+ ],
619
+ "returns": false,
620
+ },
621
+ "name": "case32",
622
+ "required": false,
623
+ "sbType": Object {
624
+ "name": "function",
625
+ },
626
+ "type": Object {
627
+ "detail": undefined,
628
+ "summary": "(myType: (number|boolean))",
629
+ },
630
+ },
631
+ Object {
632
+ "defaultValue": null,
633
+ "description": "param any type",
634
+ "jsDocTags": Object {
635
+ "params": Array [
636
+ Object {
637
+ "description": null,
638
+ "name": "myType",
639
+ },
640
+ ],
641
+ "returns": false,
642
+ },
643
+ "name": "case33",
644
+ "required": false,
645
+ "sbType": Object {
646
+ "name": "function",
647
+ },
648
+ "type": Object {
649
+ "detail": undefined,
650
+ "summary": "(myType: any)",
651
+ },
652
+ },
653
+ Object {
654
+ "defaultValue": null,
655
+ "description": "param repeatable type",
656
+ "jsDocTags": Object {
657
+ "params": Array [
658
+ Object {
659
+ "description": null,
660
+ "name": "myType",
661
+ },
662
+ ],
663
+ "returns": false,
664
+ },
665
+ "name": "case34",
666
+ "required": false,
667
+ "sbType": Object {
668
+ "name": "function",
669
+ },
670
+ "type": Object {
671
+ "detail": undefined,
672
+ "summary": "(myType)",
673
+ },
674
+ },
675
+ Object {
676
+ "defaultValue": null,
677
+ "description": "optional param",
678
+ "jsDocTags": Object {
679
+ "params": Array [
680
+ Object {
681
+ "description": null,
682
+ "name": "myType",
683
+ },
684
+ ],
685
+ "returns": false,
686
+ },
687
+ "name": "case35",
688
+ "required": false,
689
+ "sbType": Object {
690
+ "name": "function",
691
+ },
692
+ "type": Object {
693
+ "detail": undefined,
694
+ "summary": "(myType: number)",
695
+ },
696
+ },
697
+ Object {
698
+ "defaultValue": null,
699
+ "description": "optional param",
700
+ "jsDocTags": Object {
701
+ "params": Array [
702
+ Object {
703
+ "description": null,
704
+ "name": "myType",
705
+ },
706
+ ],
707
+ "returns": false,
708
+ },
709
+ "name": "case36",
710
+ "required": false,
711
+ "sbType": Object {
712
+ "name": "function",
713
+ },
714
+ "type": Object {
715
+ "detail": undefined,
716
+ "summary": "(myType: number)",
717
+ },
718
+ },
719
+ Object {
720
+ "defaultValue": null,
721
+ "description": "dot in param name",
722
+ "jsDocTags": Object {
723
+ "params": Array [
724
+ Object {
725
+ "description": null,
726
+ "name": "my.type",
727
+ },
728
+ ],
729
+ "returns": false,
730
+ },
731
+ "name": "case37",
732
+ "required": false,
733
+ "sbType": Object {
734
+ "name": "function",
735
+ },
736
+ "type": Object {
737
+ "detail": undefined,
738
+ "summary": "(my.type: number)",
739
+ },
740
+ },
741
+ Object {
742
+ "defaultValue": null,
743
+ "description": "returns record type",
744
+ "jsDocTags": Object {
745
+ "params": false,
746
+ "returns": Object {
747
+ "description": null,
748
+ },
749
+ },
750
+ "name": "case38",
751
+ "required": false,
752
+ "sbType": Object {
753
+ "name": "function",
754
+ },
755
+ "type": Object {
756
+ "detail": undefined,
757
+ "summary": "() => ({a: number, b: string})",
758
+ },
759
+ },
760
+ Object {
761
+ "defaultValue": null,
762
+ "description": "returns array type",
763
+ "jsDocTags": Object {
764
+ "params": false,
765
+ "returns": Object {
766
+ "description": null,
767
+ },
768
+ },
769
+ "name": "case39",
770
+ "required": false,
771
+ "sbType": Object {
772
+ "name": "function",
773
+ },
774
+ "type": Object {
775
+ "detail": undefined,
776
+ "summary": "() => string[]",
777
+ },
778
+ },
779
+ Object {
780
+ "defaultValue": null,
781
+ "description": "returns union type",
782
+ "jsDocTags": Object {
783
+ "params": false,
784
+ "returns": Object {
785
+ "description": null,
786
+ },
787
+ },
788
+ "name": "case40",
789
+ "required": false,
790
+ "sbType": Object {
791
+ "name": "function",
792
+ },
793
+ "type": Object {
794
+ "detail": undefined,
795
+ "summary": "() => (number|boolean)",
796
+ },
797
+ },
798
+ Object {
799
+ "defaultValue": null,
800
+ "description": "returns any type",
801
+ "jsDocTags": Object {
802
+ "params": false,
803
+ "returns": Object {
804
+ "description": null,
805
+ },
806
+ },
807
+ "name": "case41",
808
+ "required": false,
809
+ "sbType": Object {
810
+ "name": "function",
811
+ },
812
+ "type": Object {
813
+ "detail": undefined,
814
+ "summary": "() => any",
815
+ },
816
+ },
817
+ Object {
818
+ "defaultValue": null,
819
+ "description": "returns primitive",
820
+ "jsDocTags": Object {
821
+ "params": false,
822
+ "returns": Object {
823
+ "description": null,
824
+ },
825
+ },
826
+ "name": "case42",
827
+ "required": false,
828
+ "sbType": Object {
829
+ "name": "function",
830
+ },
831
+ "type": Object {
832
+ "detail": undefined,
833
+ "summary": "() => string",
834
+ },
835
+ },
836
+ Object {
837
+ "defaultValue": null,
838
+ "description": "returns void",
839
+ "jsDocTags": Object {
840
+ "params": false,
841
+ "returns": Object {
842
+ "description": null,
843
+ },
844
+ },
845
+ "name": "case43",
846
+ "required": false,
847
+ "sbType": Object {
848
+ "name": "function",
849
+ },
850
+ "type": Object {
851
+ "detail": undefined,
852
+ "summary": "() => void",
853
+ },
854
+ },
855
+ ],
856
+ }
857
+ `;