@storybook/react 7.3.2 → 7.4.0-alpha.1

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 (150) hide show
  1. package/package.json +10 -9
  2. package/src/__test__/README.md +0 -3
  3. package/src/typings.d.ts +0 -48
  4. package/template/components/Button.jsx +0 -13
  5. package/template/components/Form.jsx +0 -36
  6. package/template/components/Html.jsx +0 -9
  7. package/template/components/Pre.jsx +0 -20
  8. package/template/stories/decorators.stories.tsx +0 -48
  9. package/template/stories/docgen-components/10017-ts-union/argTypes.snapshot +0 -36
  10. package/template/stories/docgen-components/10017-ts-union/docgen.snapshot +0 -34
  11. package/template/stories/docgen-components/10017-ts-union/input.tsx +0 -12
  12. package/template/stories/docgen-components/10017-ts-union/properties.snapshot +0 -32
  13. package/template/stories/docgen-components/10278-ts-multiple-components/argTypes.snapshot +0 -26
  14. package/template/stories/docgen-components/10278-ts-multiple-components/docgen.snapshot +0 -49
  15. package/template/stories/docgen-components/10278-ts-multiple-components/input.tsx +0 -27
  16. package/template/stories/docgen-components/10278-ts-multiple-components/properties.snapshot +0 -22
  17. package/template/stories/docgen-components/8140-js-prop-types-oneof/argTypes.snapshot +0 -127
  18. package/template/stories/docgen-components/8140-js-prop-types-oneof/docgen.snapshot +0 -97
  19. package/template/stories/docgen-components/8140-js-prop-types-oneof/input.jsx +0 -27
  20. package/template/stories/docgen-components/8140-js-prop-types-oneof/properties.snapshot +0 -89
  21. package/template/stories/docgen-components/8143-ts-imported-types/argTypes.snapshot +0 -27
  22. package/template/stories/docgen-components/8143-ts-imported-types/docgen.snapshot +0 -22
  23. package/template/stories/docgen-components/8143-ts-imported-types/input.tsx +0 -10
  24. package/template/stories/docgen-components/8143-ts-imported-types/properties.snapshot +0 -23
  25. package/template/stories/docgen-components/8143-ts-imported-types/types.ts +0 -3
  26. package/template/stories/docgen-components/8143-ts-react-fc-generics/argTypes.snapshot +0 -27
  27. package/template/stories/docgen-components/8143-ts-react-fc-generics/docgen.snapshot +0 -24
  28. package/template/stories/docgen-components/8143-ts-react-fc-generics/input.tsx +0 -10
  29. package/template/stories/docgen-components/8143-ts-react-fc-generics/properties.snapshot +0 -21
  30. package/template/stories/docgen-components/8428-js-static-prop-types/argTypes.snapshot +0 -25
  31. package/template/stories/docgen-components/8428-js-static-prop-types/docgen.snapshot +0 -39
  32. package/template/stories/docgen-components/8428-js-static-prop-types/input.jsx +0 -20
  33. package/template/stories/docgen-components/8428-js-static-prop-types/properties.snapshot +0 -21
  34. package/template/stories/docgen-components/8740-ts-multi-props/argTypes.snapshot +0 -27
  35. package/template/stories/docgen-components/8740-ts-multi-props/docgen.snapshot +0 -49
  36. package/template/stories/docgen-components/8740-ts-multi-props/input.tsx +0 -23
  37. package/template/stories/docgen-components/8740-ts-multi-props/properties.snapshot +0 -21
  38. package/template/stories/docgen-components/8894-9511-ts-forward-ref/argTypes.snapshot +0 -48
  39. package/template/stories/docgen-components/8894-9511-ts-forward-ref/docgen.snapshot +0 -39
  40. package/template/stories/docgen-components/8894-9511-ts-forward-ref/input.tsx +0 -31
  41. package/template/stories/docgen-components/8894-9511-ts-forward-ref/properties.snapshot +0 -34
  42. package/template/stories/docgen-components/9023-js-hoc/argTypes.snapshot +0 -89
  43. package/template/stories/docgen-components/9023-js-hoc/docgen.snapshot +0 -84
  44. package/template/stories/docgen-components/9023-js-hoc/input.jsx +0 -40
  45. package/template/stories/docgen-components/9023-js-hoc/properties.snapshot +0 -67
  46. package/template/stories/docgen-components/9399-js-proptypes-shape/argTypes.snapshot +0 -39
  47. package/template/stories/docgen-components/9399-js-proptypes-shape/docgen.snapshot +0 -48
  48. package/template/stories/docgen-components/9399-js-proptypes-shape/input.jsx +0 -16
  49. package/template/stories/docgen-components/9399-js-proptypes-shape/properties.snapshot +0 -35
  50. package/template/stories/docgen-components/9465-ts-type-props/argTypes.snapshot +0 -28
  51. package/template/stories/docgen-components/9465-ts-type-props/docgen.snapshot +0 -33
  52. package/template/stories/docgen-components/9465-ts-type-props/input.tsx +0 -12
  53. package/template/stories/docgen-components/9465-ts-type-props/properties.snapshot +0 -24
  54. package/template/stories/docgen-components/9493-ts-display-name/argTypes.snapshot +0 -62
  55. package/template/stories/docgen-components/9493-ts-display-name/docgen.snapshot +0 -50
  56. package/template/stories/docgen-components/9493-ts-display-name/input.tsx +0 -30
  57. package/template/stories/docgen-components/9493-ts-display-name/properties.snapshot +0 -52
  58. package/template/stories/docgen-components/9556-ts-react-default-exports/argTypes.snapshot +0 -28
  59. package/template/stories/docgen-components/9556-ts-react-default-exports/docgen.snapshot +0 -32
  60. package/template/stories/docgen-components/9556-ts-react-default-exports/input.tsx +0 -12
  61. package/template/stories/docgen-components/9556-ts-react-default-exports/properties.snapshot +0 -24
  62. package/template/stories/docgen-components/9575-ts-camel-case/argTypes.snapshot +0 -28
  63. package/template/stories/docgen-components/9575-ts-camel-case/docgen.snapshot +0 -38
  64. package/template/stories/docgen-components/9575-ts-camel-case/input.tsx +0 -26
  65. package/template/stories/docgen-components/9575-ts-camel-case/properties.snapshot +0 -24
  66. package/template/stories/docgen-components/9586-js-react-memo/argTypes.snapshot +0 -41
  67. package/template/stories/docgen-components/9586-js-react-memo/docgen.snapshot +0 -42
  68. package/template/stories/docgen-components/9586-js-react-memo/input.jsx +0 -15
  69. package/template/stories/docgen-components/9586-js-react-memo/properties.snapshot +0 -34
  70. package/template/stories/docgen-components/9591-ts-import-types/Bar.tsx +0 -3
  71. package/template/stories/docgen-components/9591-ts-import-types/argTypes.snapshot +0 -25
  72. package/template/stories/docgen-components/9591-ts-import-types/docgen.snapshot +0 -21
  73. package/template/stories/docgen-components/9591-ts-import-types/input.tsx +0 -10
  74. package/template/stories/docgen-components/9591-ts-import-types/properties.snapshot +0 -21
  75. package/template/stories/docgen-components/9626-js-default-values/argTypes.snapshot +0 -27
  76. package/template/stories/docgen-components/9626-js-default-values/docgen.snapshot +0 -25
  77. package/template/stories/docgen-components/9626-js-default-values/input.jsx +0 -5
  78. package/template/stories/docgen-components/9626-js-default-values/properties.snapshot +0 -21
  79. package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/argTypes.snapshot +0 -42
  80. package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/docgen.snapshot +0 -36
  81. package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/input.jsx +0 -13
  82. package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/properties.snapshot +0 -35
  83. package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/argTypes.snapshot +0 -34
  84. package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/docgen.snapshot +0 -38
  85. package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/input.tsx +0 -12
  86. package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/properties.snapshot +0 -30
  87. package/template/stories/docgen-components/9764-ts-extend-props/argTypes.snapshot +0 -72
  88. package/template/stories/docgen-components/9764-ts-extend-props/docgen.snapshot +0 -41
  89. package/template/stories/docgen-components/9764-ts-extend-props/input.tsx +0 -17
  90. package/template/stories/docgen-components/9764-ts-extend-props/properties.snapshot +0 -56
  91. package/template/stories/docgen-components/9827-ts-default-values/argTypes.snapshot +0 -72
  92. package/template/stories/docgen-components/9827-ts-default-values/docgen.snapshot +0 -52
  93. package/template/stories/docgen-components/9827-ts-default-values/input.tsx +0 -17
  94. package/template/stories/docgen-components/9827-ts-default-values/properties.snapshot +0 -56
  95. package/template/stories/docgen-components/9832-ts-enum-export/argTypes.snapshot +0 -3
  96. package/template/stories/docgen-components/9832-ts-enum-export/docgen.snapshot +0 -16
  97. package/template/stories/docgen-components/9832-ts-enum-export/input.tsx +0 -8
  98. package/template/stories/docgen-components/9832-ts-enum-export/properties.snapshot +0 -7
  99. package/template/stories/docgen-components/9922-ts-component-props/argTypes.snapshot +0 -25
  100. package/template/stories/docgen-components/9922-ts-component-props/docgen.snapshot +0 -35
  101. package/template/stories/docgen-components/9922-ts-component-props/input.tsx +0 -24
  102. package/template/stories/docgen-components/9922-ts-component-props/properties.snapshot +0 -21
  103. package/template/stories/docgen-components/js-class-component/argTypes.snapshot +0 -386
  104. package/template/stories/docgen-components/js-class-component/docgen.snapshot +0 -252
  105. package/template/stories/docgen-components/js-class-component/input.jsx +0 -57
  106. package/template/stories/docgen-components/js-class-component/properties.snapshot +0 -286
  107. package/template/stories/docgen-components/js-function-component/argTypes.snapshot +0 -386
  108. package/template/stories/docgen-components/js-function-component/docgen.snapshot +0 -236
  109. package/template/stories/docgen-components/js-function-component/input.jsx +0 -50
  110. package/template/stories/docgen-components/js-function-component/properties.snapshot +0 -286
  111. package/template/stories/docgen-components/js-function-component-inline-defaults/argTypes.snapshot +0 -386
  112. package/template/stories/docgen-components/js-function-component-inline-defaults/docgen.snapshot +0 -247
  113. package/template/stories/docgen-components/js-function-component-inline-defaults/input.jsx +0 -65
  114. package/template/stories/docgen-components/js-function-component-inline-defaults/properties.snapshot +0 -286
  115. package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/argTypes.snapshot +0 -237
  116. package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/docgen.snapshot +0 -124
  117. package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/input.jsx +0 -41
  118. package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/properties.snapshot +0 -151
  119. package/template/stories/docgen-components/js-proptypes/docgen.snapshot +0 -1770
  120. package/template/stories/docgen-components/js-proptypes/input.jsx +0 -497
  121. package/template/stories/docgen-components/jsdoc/argTypes.snapshot +0 -1129
  122. package/template/stories/docgen-components/jsdoc/docgen.snapshot +0 -548
  123. package/template/stories/docgen-components/jsdoc/input.jsx +0 -231
  124. package/template/stories/docgen-components/jsdoc/properties.snapshot +0 -1017
  125. package/template/stories/docgen-components/ts-function-component/argTypes.snapshot +0 -396
  126. package/template/stories/docgen-components/ts-function-component/docgen.snapshot +0 -241
  127. package/template/stories/docgen-components/ts-function-component/input.tsx +0 -52
  128. package/template/stories/docgen-components/ts-function-component/properties.snapshot +0 -296
  129. package/template/stories/docgen-components/ts-function-component-inline-defaults/argTypes.snapshot +0 -279
  130. package/template/stories/docgen-components/ts-function-component-inline-defaults/docgen.snapshot +0 -151
  131. package/template/stories/docgen-components/ts-function-component-inline-defaults/input.tsx +0 -80
  132. package/template/stories/docgen-components/ts-function-component-inline-defaults/properties.snapshot +0 -177
  133. package/template/stories/docgen-components/ts-html/argTypes.snapshot +0 -3
  134. package/template/stories/docgen-components/ts-html/docgen.snapshot +0 -12
  135. package/template/stories/docgen-components/ts-html/input.tsx +0 -12
  136. package/template/stories/docgen-components/ts-html/properties.snapshot +0 -7
  137. package/template/stories/docgen-components/ts-jsdoc/argTypes.snapshot +0 -3
  138. package/template/stories/docgen-components/ts-jsdoc/docgen.snapshot +0 -21
  139. package/template/stories/docgen-components/ts-jsdoc/input.tsx +0 -27
  140. package/template/stories/docgen-components/ts-jsdoc/properties.snapshot +0 -7
  141. package/template/stories/docgen-components/ts-types/argTypes.snapshot +0 -656
  142. package/template/stories/docgen-components/ts-types/docgen.snapshot +0 -317
  143. package/template/stories/docgen-components/ts-types/input.tsx +0 -130
  144. package/template/stories/docgen-components/ts-types/properties.snapshot +0 -410
  145. package/template/stories/errors.stories.tsx +0 -37
  146. package/template/stories/hooks.stories.tsx +0 -17
  147. package/template/stories/js-argtypes.stories.jsx +0 -91
  148. package/template/stories/react-mdx.stories.mdx +0 -26
  149. package/template/stories/teardown.stories.tsx +0 -23
  150. package/template/stories/ts-argtypes.stories.tsx +0 -104
@@ -1,1129 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`react component properties jsdoc 1`] = `
4
- Object {
5
- "case1": Object {
6
- "control": Object {
7
- "type": "text",
8
- },
9
- "description": "simple description.",
10
- "name": "case1",
11
- "table": Object {
12
- "defaultValue": null,
13
- "jsDocTags": undefined,
14
- "type": Object {
15
- "detail": undefined,
16
- "summary": "string",
17
- },
18
- },
19
- "type": Object {
20
- "name": "string",
21
- "required": false,
22
- },
23
- },
24
- "case10": Object {
25
- "description": "param with name",
26
- "name": "case10",
27
- "table": Object {
28
- "defaultValue": null,
29
- "jsDocTags": Object {
30
- "deprecated": null,
31
- "ignore": false,
32
- "params": Array [
33
- Object {
34
- "description": null,
35
- "name": "event",
36
- },
37
- ],
38
- "returns": null,
39
- },
40
- "type": Object {
41
- "detail": undefined,
42
- "summary": "(event)",
43
- },
44
- },
45
- "type": Object {
46
- "name": "function",
47
- "required": false,
48
- },
49
- },
50
- "case11": Object {
51
- "description": "param with name & type",
52
- "name": "case11",
53
- "table": Object {
54
- "defaultValue": null,
55
- "jsDocTags": Object {
56
- "deprecated": null,
57
- "ignore": false,
58
- "params": Array [
59
- Object {
60
- "description": null,
61
- "name": "event",
62
- },
63
- ],
64
- "returns": null,
65
- },
66
- "type": Object {
67
- "detail": undefined,
68
- "summary": "(event: SyntheticEvent)",
69
- },
70
- },
71
- "type": Object {
72
- "name": "function",
73
- "required": false,
74
- },
75
- },
76
- "case12": Object {
77
- "description": "param with name, type & description",
78
- "name": "case12",
79
- "table": Object {
80
- "defaultValue": null,
81
- "jsDocTags": Object {
82
- "deprecated": null,
83
- "ignore": false,
84
- "params": Array [
85
- Object {
86
- "description": "React's original event",
87
- "name": "event",
88
- },
89
- ],
90
- "returns": null,
91
- },
92
- "type": Object {
93
- "detail": undefined,
94
- "summary": "(event: SyntheticEvent)",
95
- },
96
- },
97
- "type": Object {
98
- "name": "function",
99
- "required": false,
100
- },
101
- },
102
- "case13": Object {
103
- "description": "param with type",
104
- "name": "case13",
105
- "table": Object {
106
- "defaultValue": null,
107
- "jsDocTags": Object {
108
- "deprecated": null,
109
- "ignore": false,
110
- "params": Array [
111
- Object {
112
- "description": null,
113
- "name": "SyntheticEvent",
114
- },
115
- ],
116
- "returns": null,
117
- },
118
- "type": Object {
119
- "detail": undefined,
120
- "summary": "(SyntheticEvent)",
121
- },
122
- },
123
- "type": Object {
124
- "name": "function",
125
- "required": false,
126
- },
127
- },
128
- "case14": Object {
129
- "description": "param with type & description",
130
- "name": "case14",
131
- "table": Object {
132
- "defaultValue": null,
133
- "jsDocTags": undefined,
134
- "type": Object {
135
- "detail": undefined,
136
- "summary": "func",
137
- },
138
- },
139
- "type": Object {
140
- "name": "function",
141
- "required": false,
142
- },
143
- },
144
- "case15": Object {
145
- "description": "param with name & description",
146
- "name": "case15",
147
- "table": Object {
148
- "defaultValue": null,
149
- "jsDocTags": Object {
150
- "deprecated": null,
151
- "ignore": false,
152
- "params": Array [
153
- Object {
154
- "description": "React's original event",
155
- "name": "event",
156
- },
157
- ],
158
- "returns": null,
159
- },
160
- "type": Object {
161
- "detail": undefined,
162
- "summary": "(event)",
163
- },
164
- },
165
- "type": Object {
166
- "name": "function",
167
- "required": false,
168
- },
169
- },
170
- "case16": Object {
171
- "description": "autofix event-",
172
- "name": "case16",
173
- "table": Object {
174
- "defaultValue": null,
175
- "jsDocTags": Object {
176
- "deprecated": null,
177
- "ignore": false,
178
- "params": Array [
179
- Object {
180
- "description": "React's original event",
181
- "name": "event",
182
- },
183
- ],
184
- "returns": null,
185
- },
186
- "type": Object {
187
- "detail": undefined,
188
- "summary": "(event)",
189
- },
190
- },
191
- "type": Object {
192
- "name": "function",
193
- "required": false,
194
- },
195
- },
196
- "case17": Object {
197
- "description": "autofix event.",
198
- "name": "case17",
199
- "table": Object {
200
- "defaultValue": null,
201
- "jsDocTags": Object {
202
- "deprecated": null,
203
- "ignore": false,
204
- "params": Array [
205
- Object {
206
- "description": null,
207
- "name": "event",
208
- },
209
- ],
210
- "returns": Object {
211
- "description": null,
212
- "getTypeName": [Function],
213
- "type": Object {
214
- "name": "string",
215
- "type": "NameExpression",
216
- },
217
- },
218
- },
219
- "type": Object {
220
- "detail": undefined,
221
- "summary": "(event) => string",
222
- },
223
- },
224
- "type": Object {
225
- "name": "function",
226
- "required": false,
227
- },
228
- },
229
- "case18": Object {
230
- "description": "with an empty param.",
231
- "name": "case18",
232
- "table": Object {
233
- "defaultValue": null,
234
- "jsDocTags": undefined,
235
- "type": Object {
236
- "detail": undefined,
237
- "summary": "func",
238
- },
239
- },
240
- "type": Object {
241
- "name": "function",
242
- "required": false,
243
- },
244
- },
245
- "case19": Object {
246
- "description": "with multiple empty params.",
247
- "name": "case19",
248
- "table": Object {
249
- "defaultValue": null,
250
- "jsDocTags": undefined,
251
- "type": Object {
252
- "detail": undefined,
253
- "summary": "func",
254
- },
255
- },
256
- "type": Object {
257
- "name": "function",
258
- "required": false,
259
- },
260
- },
261
- "case2": Object {
262
- "control": Object {
263
- "type": "text",
264
- },
265
- "description": "multi
266
- lines
267
- description",
268
- "name": "case2",
269
- "table": Object {
270
- "defaultValue": null,
271
- "jsDocTags": undefined,
272
- "type": Object {
273
- "detail": undefined,
274
- "summary": "string",
275
- },
276
- },
277
- "type": Object {
278
- "name": "string",
279
- "required": false,
280
- },
281
- },
282
- "case20": Object {
283
- "description": "with arg alias.",
284
- "name": "case20",
285
- "table": Object {
286
- "defaultValue": null,
287
- "jsDocTags": Object {
288
- "deprecated": null,
289
- "ignore": false,
290
- "params": Array [
291
- Object {
292
- "description": null,
293
- "name": "event",
294
- },
295
- ],
296
- "returns": null,
297
- },
298
- "type": Object {
299
- "detail": undefined,
300
- "summary": "(event)",
301
- },
302
- },
303
- "type": Object {
304
- "name": "function",
305
- "required": false,
306
- },
307
- },
308
- "case21": Object {
309
- "description": "with argument alias.",
310
- "name": "case21",
311
- "table": Object {
312
- "defaultValue": null,
313
- "jsDocTags": Object {
314
- "deprecated": null,
315
- "ignore": false,
316
- "params": Array [
317
- Object {
318
- "description": null,
319
- "name": "event",
320
- },
321
- ],
322
- "returns": null,
323
- },
324
- "type": Object {
325
- "detail": undefined,
326
- "summary": "(event)",
327
- },
328
- },
329
- "type": Object {
330
- "name": "function",
331
- "required": false,
332
- },
333
- },
334
- "case22": Object {
335
- "description": "with multiple params.",
336
- "name": "case22",
337
- "table": Object {
338
- "defaultValue": null,
339
- "jsDocTags": Object {
340
- "deprecated": null,
341
- "ignore": false,
342
- "params": Array [
343
- Object {
344
- "description": null,
345
- "name": "event",
346
- },
347
- Object {
348
- "description": null,
349
- "name": "stringValue",
350
- },
351
- Object {
352
- "description": null,
353
- "name": "numberValue",
354
- },
355
- ],
356
- "returns": null,
357
- },
358
- "type": Object {
359
- "detail": undefined,
360
- "summary": "(event: SyntheticEvent, stringValue: string, numberValue: number)",
361
- },
362
- },
363
- "type": Object {
364
- "name": "function",
365
- "required": false,
366
- },
367
- },
368
- "case23": Object {
369
- "description": "with an empty returns",
370
- "name": "case23",
371
- "table": Object {
372
- "defaultValue": null,
373
- "jsDocTags": undefined,
374
- "type": Object {
375
- "detail": undefined,
376
- "summary": "func",
377
- },
378
- },
379
- "type": Object {
380
- "name": "function",
381
- "required": false,
382
- },
383
- },
384
- "case24": Object {
385
- "description": "with a returns with a type",
386
- "name": "case24",
387
- "table": Object {
388
- "defaultValue": null,
389
- "jsDocTags": Object {
390
- "deprecated": null,
391
- "ignore": false,
392
- "params": undefined,
393
- "returns": Object {
394
- "description": null,
395
- "getTypeName": [Function],
396
- "type": Object {
397
- "name": "SyntheticEvent",
398
- "type": "NameExpression",
399
- },
400
- },
401
- },
402
- "type": Object {
403
- "detail": undefined,
404
- "summary": "() => SyntheticEvent",
405
- },
406
- },
407
- "type": Object {
408
- "name": "function",
409
- "required": false,
410
- },
411
- },
412
- "case25": Object {
413
- "description": "with a returns with a type & description",
414
- "name": "case25",
415
- "table": Object {
416
- "defaultValue": null,
417
- "jsDocTags": Object {
418
- "deprecated": null,
419
- "ignore": false,
420
- "params": undefined,
421
- "returns": Object {
422
- "description": "React's original event",
423
- "getTypeName": [Function],
424
- "type": Object {
425
- "name": "SyntheticEvent",
426
- "type": "NameExpression",
427
- },
428
- },
429
- },
430
- "type": Object {
431
- "detail": undefined,
432
- "summary": "() => SyntheticEvent",
433
- },
434
- },
435
- "type": Object {
436
- "name": "function",
437
- "required": false,
438
- },
439
- },
440
- "case26": Object {
441
- "description": "single param and a returns",
442
- "name": "case26",
443
- "table": Object {
444
- "defaultValue": null,
445
- "jsDocTags": Object {
446
- "deprecated": null,
447
- "ignore": false,
448
- "params": Array [
449
- Object {
450
- "description": null,
451
- "name": "stringValue",
452
- },
453
- ],
454
- "returns": Object {
455
- "description": "React's original event",
456
- "getTypeName": [Function],
457
- "type": Object {
458
- "name": "SyntheticEvent",
459
- "type": "NameExpression",
460
- },
461
- },
462
- },
463
- "type": Object {
464
- "detail": undefined,
465
- "summary": "(stringValue: string) => SyntheticEvent",
466
- },
467
- },
468
- "type": Object {
469
- "name": "function",
470
- "required": false,
471
- },
472
- },
473
- "case27": Object {
474
- "description": "multiple params and a returns",
475
- "name": "case27",
476
- "table": Object {
477
- "defaultValue": null,
478
- "jsDocTags": Object {
479
- "deprecated": null,
480
- "ignore": false,
481
- "params": Array [
482
- Object {
483
- "description": null,
484
- "name": "stringValue",
485
- },
486
- Object {
487
- "description": null,
488
- "name": "numberValue",
489
- },
490
- ],
491
- "returns": Object {
492
- "description": "React's original event",
493
- "getTypeName": [Function],
494
- "type": Object {
495
- "name": "SyntheticEvent",
496
- "type": "NameExpression",
497
- },
498
- },
499
- },
500
- "type": Object {
501
- "detail": undefined,
502
- "summary": "(stringValue: string, numberValue: number) => SyntheticEvent",
503
- },
504
- },
505
- "type": Object {
506
- "name": "function",
507
- "required": false,
508
- },
509
- },
510
- "case28": Object {
511
- "description": "multiple returns",
512
- "name": "case28",
513
- "table": Object {
514
- "defaultValue": null,
515
- "jsDocTags": Object {
516
- "deprecated": null,
517
- "ignore": false,
518
- "params": undefined,
519
- "returns": Object {
520
- "description": "Second returns",
521
- "getTypeName": [Function],
522
- "type": Object {
523
- "name": "string",
524
- "type": "NameExpression",
525
- },
526
- },
527
- },
528
- "type": Object {
529
- "detail": undefined,
530
- "summary": "() => string",
531
- },
532
- },
533
- "type": Object {
534
- "name": "function",
535
- "required": false,
536
- },
537
- },
538
- "case29": Object {
539
- "description": "param with unsupported JSDoc tags",
540
- "name": "case29",
541
- "table": Object {
542
- "defaultValue": null,
543
- "jsDocTags": Object {
544
- "deprecated": null,
545
- "ignore": false,
546
- "params": Array [
547
- Object {
548
- "description": "React's original event",
549
- "name": "event",
550
- },
551
- ],
552
- "returns": null,
553
- },
554
- "type": Object {
555
- "detail": undefined,
556
- "summary": "(event: SyntheticEvent)",
557
- },
558
- },
559
- "type": Object {
560
- "name": "function",
561
- "required": false,
562
- },
563
- },
564
- "case3": Object {
565
- "control": Object {
566
- "type": "text",
567
- },
568
- "description": "*description* **with** \`formatting\`",
569
- "name": "case3",
570
- "table": Object {
571
- "defaultValue": null,
572
- "jsDocTags": undefined,
573
- "type": Object {
574
- "detail": undefined,
575
- "summary": "string",
576
- },
577
- },
578
- "type": Object {
579
- "name": "string",
580
- "required": false,
581
- },
582
- },
583
- "case30": Object {
584
- "description": "param record type",
585
- "name": "case30",
586
- "table": Object {
587
- "defaultValue": null,
588
- "jsDocTags": Object {
589
- "deprecated": null,
590
- "ignore": false,
591
- "params": Array [
592
- Object {
593
- "description": null,
594
- "name": "myType",
595
- },
596
- ],
597
- "returns": null,
598
- },
599
- "type": Object {
600
- "detail": undefined,
601
- "summary": "(myType: ({a: number, b: string}))",
602
- },
603
- },
604
- "type": Object {
605
- "name": "function",
606
- "required": false,
607
- },
608
- },
609
- "case31": Object {
610
- "description": "param array type",
611
- "name": "case31",
612
- "table": Object {
613
- "defaultValue": null,
614
- "jsDocTags": Object {
615
- "deprecated": null,
616
- "ignore": false,
617
- "params": Array [
618
- Object {
619
- "description": null,
620
- "name": "myType",
621
- },
622
- ],
623
- "returns": null,
624
- },
625
- "type": Object {
626
- "detail": undefined,
627
- "summary": "(myType: string[])",
628
- },
629
- },
630
- "type": Object {
631
- "name": "function",
632
- "required": false,
633
- },
634
- },
635
- "case32": Object {
636
- "description": "param union type",
637
- "name": "case32",
638
- "table": Object {
639
- "defaultValue": null,
640
- "jsDocTags": Object {
641
- "deprecated": null,
642
- "ignore": false,
643
- "params": Array [
644
- Object {
645
- "description": null,
646
- "name": "myType",
647
- },
648
- ],
649
- "returns": null,
650
- },
651
- "type": Object {
652
- "detail": undefined,
653
- "summary": "(myType: (number|boolean))",
654
- },
655
- },
656
- "type": Object {
657
- "name": "function",
658
- "required": false,
659
- },
660
- },
661
- "case33": Object {
662
- "description": "param any type",
663
- "name": "case33",
664
- "table": Object {
665
- "defaultValue": null,
666
- "jsDocTags": Object {
667
- "deprecated": null,
668
- "ignore": false,
669
- "params": Array [
670
- Object {
671
- "description": null,
672
- "name": "myType",
673
- },
674
- ],
675
- "returns": null,
676
- },
677
- "type": Object {
678
- "detail": undefined,
679
- "summary": "(myType: any)",
680
- },
681
- },
682
- "type": Object {
683
- "name": "function",
684
- "required": false,
685
- },
686
- },
687
- "case34": Object {
688
- "description": "param repeatable type",
689
- "name": "case34",
690
- "table": Object {
691
- "defaultValue": null,
692
- "jsDocTags": Object {
693
- "deprecated": null,
694
- "ignore": false,
695
- "params": Array [
696
- Object {
697
- "description": null,
698
- "name": "myType",
699
- },
700
- ],
701
- "returns": null,
702
- },
703
- "type": Object {
704
- "detail": undefined,
705
- "summary": "(myType)",
706
- },
707
- },
708
- "type": Object {
709
- "name": "function",
710
- "required": false,
711
- },
712
- },
713
- "case35": Object {
714
- "description": "optional param",
715
- "name": "case35",
716
- "table": Object {
717
- "defaultValue": null,
718
- "jsDocTags": Object {
719
- "deprecated": null,
720
- "ignore": false,
721
- "params": Array [
722
- Object {
723
- "description": null,
724
- "name": "myType",
725
- },
726
- ],
727
- "returns": null,
728
- },
729
- "type": Object {
730
- "detail": undefined,
731
- "summary": "(myType: number)",
732
- },
733
- },
734
- "type": Object {
735
- "name": "function",
736
- "required": false,
737
- },
738
- },
739
- "case36": Object {
740
- "description": "optional param",
741
- "name": "case36",
742
- "table": Object {
743
- "defaultValue": null,
744
- "jsDocTags": Object {
745
- "deprecated": null,
746
- "ignore": false,
747
- "params": Array [
748
- Object {
749
- "description": null,
750
- "name": "myType",
751
- },
752
- ],
753
- "returns": null,
754
- },
755
- "type": Object {
756
- "detail": undefined,
757
- "summary": "(myType: number)",
758
- },
759
- },
760
- "type": Object {
761
- "name": "function",
762
- "required": false,
763
- },
764
- },
765
- "case37": Object {
766
- "description": "dot in param name",
767
- "name": "case37",
768
- "table": Object {
769
- "defaultValue": null,
770
- "jsDocTags": Object {
771
- "deprecated": null,
772
- "ignore": false,
773
- "params": Array [
774
- Object {
775
- "description": null,
776
- "name": "my.type",
777
- },
778
- ],
779
- "returns": null,
780
- },
781
- "type": Object {
782
- "detail": undefined,
783
- "summary": "(my.type: number)",
784
- },
785
- },
786
- "type": Object {
787
- "name": "function",
788
- "required": false,
789
- },
790
- },
791
- "case38": Object {
792
- "description": "returns record type",
793
- "name": "case38",
794
- "table": Object {
795
- "defaultValue": null,
796
- "jsDocTags": Object {
797
- "deprecated": null,
798
- "ignore": false,
799
- "params": undefined,
800
- "returns": Object {
801
- "description": null,
802
- "getTypeName": [Function],
803
- "type": Object {
804
- "fields": Array [
805
- Object {
806
- "key": "a",
807
- "type": "FieldType",
808
- "value": Object {
809
- "name": "number",
810
- "type": "NameExpression",
811
- },
812
- },
813
- Object {
814
- "key": "b",
815
- "type": "FieldType",
816
- "value": Object {
817
- "name": "string",
818
- "type": "NameExpression",
819
- },
820
- },
821
- ],
822
- "type": "RecordType",
823
- },
824
- },
825
- },
826
- "type": Object {
827
- "detail": undefined,
828
- "summary": "() => ({a: number, b: string})",
829
- },
830
- },
831
- "type": Object {
832
- "name": "function",
833
- "required": false,
834
- },
835
- },
836
- "case39": Object {
837
- "description": "returns array type",
838
- "name": "case39",
839
- "table": Object {
840
- "defaultValue": null,
841
- "jsDocTags": Object {
842
- "deprecated": null,
843
- "ignore": false,
844
- "params": undefined,
845
- "returns": Object {
846
- "description": null,
847
- "getTypeName": [Function],
848
- "type": Object {
849
- "applications": Array [
850
- Object {
851
- "name": "string",
852
- "type": "NameExpression",
853
- },
854
- ],
855
- "expression": Object {
856
- "name": "Array",
857
- "type": "NameExpression",
858
- },
859
- "type": "TypeApplication",
860
- },
861
- },
862
- },
863
- "type": Object {
864
- "detail": undefined,
865
- "summary": "() => string[]",
866
- },
867
- },
868
- "type": Object {
869
- "name": "function",
870
- "required": false,
871
- },
872
- },
873
- "case4": Object {
874
- "control": Object {
875
- "type": "text",
876
- },
877
- "description": "simple description and dummy JSDoc tag.",
878
- "name": "case4",
879
- "table": Object {
880
- "defaultValue": null,
881
- "jsDocTags": Object {
882
- "deprecated": null,
883
- "ignore": false,
884
- "params": Array [
885
- Object {
886
- "description": null,
887
- "name": "event",
888
- },
889
- ],
890
- "returns": null,
891
- },
892
- "type": Object {
893
- "detail": undefined,
894
- "summary": "string",
895
- },
896
- },
897
- "type": Object {
898
- "name": "string",
899
- "required": false,
900
- },
901
- },
902
- "case40": Object {
903
- "description": "returns union type",
904
- "name": "case40",
905
- "table": Object {
906
- "defaultValue": null,
907
- "jsDocTags": Object {
908
- "deprecated": null,
909
- "ignore": false,
910
- "params": undefined,
911
- "returns": Object {
912
- "description": null,
913
- "getTypeName": [Function],
914
- "type": Object {
915
- "elements": Array [
916
- Object {
917
- "name": "number",
918
- "type": "NameExpression",
919
- },
920
- Object {
921
- "name": "boolean",
922
- "type": "NameExpression",
923
- },
924
- ],
925
- "type": "UnionType",
926
- },
927
- },
928
- },
929
- "type": Object {
930
- "detail": undefined,
931
- "summary": "() => (number|boolean)",
932
- },
933
- },
934
- "type": Object {
935
- "name": "function",
936
- "required": false,
937
- },
938
- },
939
- "case41": Object {
940
- "description": "returns any type",
941
- "name": "case41",
942
- "table": Object {
943
- "defaultValue": null,
944
- "jsDocTags": Object {
945
- "deprecated": null,
946
- "ignore": false,
947
- "params": undefined,
948
- "returns": Object {
949
- "description": null,
950
- "getTypeName": [Function],
951
- "type": Object {
952
- "type": "AllLiteral",
953
- },
954
- },
955
- },
956
- "type": Object {
957
- "detail": undefined,
958
- "summary": "() => any",
959
- },
960
- },
961
- "type": Object {
962
- "name": "function",
963
- "required": false,
964
- },
965
- },
966
- "case42": Object {
967
- "description": "returns primitive",
968
- "name": "case42",
969
- "table": Object {
970
- "defaultValue": null,
971
- "jsDocTags": Object {
972
- "deprecated": null,
973
- "ignore": false,
974
- "params": undefined,
975
- "returns": Object {
976
- "description": null,
977
- "getTypeName": [Function],
978
- "type": Object {
979
- "name": "string",
980
- "type": "NameExpression",
981
- },
982
- },
983
- },
984
- "type": Object {
985
- "detail": undefined,
986
- "summary": "() => string",
987
- },
988
- },
989
- "type": Object {
990
- "name": "function",
991
- "required": false,
992
- },
993
- },
994
- "case43": Object {
995
- "description": "returns void",
996
- "name": "case43",
997
- "table": Object {
998
- "defaultValue": null,
999
- "jsDocTags": Object {
1000
- "deprecated": null,
1001
- "ignore": false,
1002
- "params": undefined,
1003
- "returns": Object {
1004
- "description": null,
1005
- "getTypeName": [Function],
1006
- "type": Object {
1007
- "name": "void",
1008
- "type": "NameExpression",
1009
- },
1010
- },
1011
- },
1012
- "type": Object {
1013
- "detail": undefined,
1014
- "summary": "() => void",
1015
- },
1016
- },
1017
- "type": Object {
1018
- "name": "function",
1019
- "required": false,
1020
- },
1021
- },
1022
- "case5": Object {
1023
- "control": Object {
1024
- "type": "text",
1025
- },
1026
- "description": "",
1027
- "name": "case5",
1028
- "table": Object {
1029
- "defaultValue": null,
1030
- "jsDocTags": Object {
1031
- "deprecated": null,
1032
- "ignore": false,
1033
- "params": Array [
1034
- Object {
1035
- "description": null,
1036
- "name": "event",
1037
- },
1038
- ],
1039
- "returns": null,
1040
- },
1041
- "type": Object {
1042
- "detail": undefined,
1043
- "summary": "string",
1044
- },
1045
- },
1046
- "type": Object {
1047
- "name": "string",
1048
- "required": false,
1049
- },
1050
- },
1051
- "case6": Object {
1052
- "control": Object {
1053
- "type": "text",
1054
- },
1055
- "description": "simple description with a @.",
1056
- "name": "case6",
1057
- "table": Object {
1058
- "defaultValue": null,
1059
- "jsDocTags": undefined,
1060
- "type": Object {
1061
- "detail": undefined,
1062
- "summary": "string",
1063
- },
1064
- },
1065
- "type": Object {
1066
- "name": "string",
1067
- "required": false,
1068
- },
1069
- },
1070
- "case7": Object {
1071
- "description": "",
1072
- "name": "case7",
1073
- "table": Object {
1074
- "defaultValue": null,
1075
- "jsDocTags": undefined,
1076
- "type": Object {
1077
- "detail": undefined,
1078
- "summary": "func",
1079
- },
1080
- },
1081
- "type": Object {
1082
- "name": "function",
1083
- "required": false,
1084
- },
1085
- },
1086
- "case8": Object {
1087
- "description": "func with a simple description.",
1088
- "name": "case8",
1089
- "table": Object {
1090
- "defaultValue": null,
1091
- "jsDocTags": undefined,
1092
- "type": Object {
1093
- "detail": undefined,
1094
- "summary": "func",
1095
- },
1096
- },
1097
- "type": Object {
1098
- "name": "function",
1099
- "required": false,
1100
- },
1101
- },
1102
- "case9": Object {
1103
- "description": "",
1104
- "name": "case9",
1105
- "table": Object {
1106
- "defaultValue": null,
1107
- "jsDocTags": Object {
1108
- "deprecated": null,
1109
- "ignore": false,
1110
- "params": Array [
1111
- Object {
1112
- "description": null,
1113
- "name": "event",
1114
- },
1115
- ],
1116
- "returns": null,
1117
- },
1118
- "type": Object {
1119
- "detail": undefined,
1120
- "summary": "(event)",
1121
- },
1122
- },
1123
- "type": Object {
1124
- "name": "function",
1125
- "required": false,
1126
- },
1127
- },
1128
- }
1129
- `;