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