1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
exports [` markdown-helpers rawTypeToTypeInformation() should allow commas in object types 1` ] = `
4
- Object {
4
+ {
5
5
" collection" : false ,
6
- " parameters" : Array [],
7
- " returns" : Object {
6
+ " parameters" : [],
7
+ " returns" : {
8
8
" collection" : false ,
9
9
" type" : " {a: string, b: string}" ,
10
10
},
@@ -13,10 +13,10 @@ Object {
13
13
` ;
14
14
15
15
exports [` markdown-helpers rawTypeToTypeInformation() should map a Promise types correctly 1` ] = `
16
- Object {
16
+ {
17
17
" collection" : false ,
18
- " innerTypes" : Array [
19
- Object {
18
+ " innerTypes" : [
19
+ {
20
20
" collection" : false ,
21
21
" type" : " T" ,
22
22
},
@@ -26,17 +26,17 @@ Object {
26
26
` ;
27
27
28
28
exports [` markdown-helpers rawTypeToTypeInformation() should map a complex Promise types correctly 1` ] = `
29
- Object {
29
+ {
30
30
" collection" : false ,
31
- " innerTypes" : Array [
32
- Object {
31
+ " innerTypes" : [
32
+ {
33
33
" collection" : false ,
34
- " type" : Array [
35
- Object {
34
+ " type" : [
35
+ {
36
36
" collection" : false ,
37
37
" type" : " T" ,
38
38
},
39
- Object {
39
+ {
40
40
" collection" : false ,
41
41
" type" : " A" ,
42
42
},
@@ -48,19 +48,19 @@ Object {
48
48
` ;
49
49
50
50
exports [` markdown-helpers rawTypeToTypeInformation() should map a function return type + param types correctly 1` ] = `
51
- Object {
51
+ {
52
52
" collection" : false ,
53
- " parameters" : Array [
54
- Object {
53
+ " parameters" : [
54
+ {
55
55
" collection" : false ,
56
56
" type" : " P1" ,
57
57
},
58
- Object {
58
+ {
59
59
" collection" : false ,
60
60
" type" : " P2" ,
61
61
},
62
62
],
63
- " returns" : Object {
63
+ " returns" : {
64
64
" collection" : false ,
65
65
" type" : " R" ,
66
66
},
@@ -69,10 +69,10 @@ Object {
69
69
` ;
70
70
71
71
exports [` markdown-helpers rawTypeToTypeInformation() should map a function return type correctly 1` ] = `
72
- Object {
72
+ {
73
73
" collection" : false ,
74
- " parameters" : Array [],
75
- " returns" : Object {
74
+ " parameters" : [],
75
+ " returns" : {
76
76
" collection" : false ,
77
77
" type" : " R" ,
78
78
},
@@ -81,41 +81,41 @@ Object {
81
81
` ;
82
82
83
83
exports [` markdown-helpers rawTypeToTypeInformation() should map a function with complex return type + complex param types correctly 1` ] = `
84
- Object {
84
+ {
85
85
" collection" : false ,
86
- " parameters" : Array [
87
- Object {
86
+ " parameters" : [
87
+ {
88
88
" collection" : false ,
89
- " innerTypes" : Array [
90
- Object {
89
+ " innerTypes" : [
90
+ {
91
91
" collection" : false ,
92
92
" type" : " InnerP1" ,
93
93
},
94
- Object {
94
+ {
95
95
" collection" : true ,
96
96
" type" : " AnotherInnerP1" ,
97
97
},
98
98
],
99
99
" type" : " P1" ,
100
100
},
101
- Object {
101
+ {
102
102
" collection" : false ,
103
- " innerTypes" : Array [
104
- Object {
103
+ " innerTypes" : [
104
+ {
105
105
" collection" : true ,
106
- " type" : Array [
107
- Object {
106
+ " type" : [
107
+ {
108
108
" collection" : false ,
109
109
" type" : " InnerP2" ,
110
110
},
111
- Object {
111
+ {
112
112
" collection" : false ,
113
- " innerTypes" : Array [
114
- Object {
113
+ " innerTypes" : [
114
+ {
115
115
" collection" : false ,
116
116
" type" : " SuperDeepP2" ,
117
117
},
118
- Object {
118
+ {
119
119
" collection" : false ,
120
120
" type" : " EvenDeeperP2" ,
121
121
},
@@ -128,10 +128,10 @@ Object {
128
128
" type" : " P2" ,
129
129
},
130
130
],
131
- " returns" : Object {
131
+ " returns" : {
132
132
" collection" : false ,
133
- " innerTypes" : Array [
134
- Object {
133
+ " innerTypes" : [
134
+ {
135
135
" collection" : false ,
136
136
" type" : " Foo" ,
137
137
},
@@ -143,20 +143,20 @@ Object {
143
143
` ;
144
144
145
145
exports [` markdown-helpers rawTypeToTypeInformation() should map a nested Function types correctly 1` ] = `
146
- Object {
146
+ {
147
147
" collection" : false ,
148
- " innerTypes" : Array [
149
- Object {
148
+ " innerTypes" : [
149
+ {
150
150
" collection" : false ,
151
- " type" : Array [
152
- Object {
151
+ " type" : [
152
+ {
153
153
" collection" : false ,
154
154
" type" : " T" ,
155
155
},
156
- Object {
156
+ {
157
157
" collection" : true ,
158
- " parameters" : Array [],
159
- " returns" : Object {
158
+ " parameters" : [],
159
+ " returns" : {
160
160
" collection" : true ,
161
161
" type" : " A" ,
162
162
},
@@ -170,20 +170,20 @@ Object {
170
170
` ;
171
171
172
172
exports [` markdown-helpers rawTypeToTypeInformation() should map a nested Promise types correctly 1` ] = `
173
- Object {
173
+ {
174
174
" collection" : false ,
175
- " innerTypes" : Array [
176
- Object {
175
+ " innerTypes" : [
176
+ {
177
177
" collection" : false ,
178
- " type" : Array [
179
- Object {
178
+ " type" : [
179
+ {
180
180
" collection" : false ,
181
181
" type" : " T" ,
182
182
},
183
- Object {
183
+ {
184
184
" collection" : false ,
185
- " innerTypes" : Array [
186
- Object {
185
+ " innerTypes" : [
186
+ {
187
187
" collection" : false ,
188
188
" type" : " A" ,
189
189
},
@@ -198,20 +198,20 @@ Object {
198
198
` ;
199
199
200
200
exports [` markdown-helpers rawTypeToTypeInformation() should map a nested complex Promise types correctly 1` ] = `
201
- Object {
201
+ {
202
202
" collection" : false ,
203
- " innerTypes" : Array [
204
- Object {
203
+ " innerTypes" : [
204
+ {
205
205
" collection" : false ,
206
- " type" : Array [
207
- Object {
206
+ " type" : [
207
+ {
208
208
" collection" : false ,
209
209
" type" : " T" ,
210
210
},
211
- Object {
211
+ {
212
212
" collection" : true ,
213
- " innerTypes" : Array [
214
- Object {
213
+ " innerTypes" : [
214
+ {
215
215
" collection" : true ,
216
216
" type" : " A" ,
217
217
},
@@ -226,20 +226,20 @@ Object {
226
226
` ;
227
227
228
228
exports [` markdown-helpers rawTypeToTypeInformation() should map a nested complex Promise types correctly 2` ] = `
229
- Object {
229
+ {
230
230
" collection" : false ,
231
- " innerTypes" : Array [
232
- Object {
231
+ " innerTypes" : [
232
+ {
233
233
" collection" : false ,
234
- " type" : Array [
235
- Object {
234
+ " type" : [
235
+ {
236
236
" collection" : false ,
237
237
" type" : " T" ,
238
238
},
239
- Object {
239
+ {
240
240
" collection" : true ,
241
- " innerTypes" : Array [
242
- Object {
241
+ " innerTypes" : [
242
+ {
243
243
" collection" : true ,
244
244
" type" : " A" ,
245
245
},
@@ -254,27 +254,27 @@ Object {
254
254
` ;
255
255
256
256
exports [` markdown-helpers rawTypeToTypeInformation() should map a primitive types correctly 1` ] = `
257
- Object {
257
+ {
258
258
" collection" : false ,
259
259
" type" : " Boolean" ,
260
260
}
261
261
` ;
262
262
263
263
exports [` markdown-helpers rawTypeToTypeInformation() should map a wrapped collection type correctly 1` ] = `
264
- Object {
264
+ {
265
265
" collection" : false ,
266
- " innerTypes" : Array [
267
- Object {
266
+ " innerTypes" : [
267
+ {
268
268
" collection" : true ,
269
- " type" : Array [
270
- Object {
269
+ " type" : [
270
+ {
271
271
" collection" : false ,
272
272
" type" : " T" ,
273
273
},
274
- Object {
274
+ {
275
275
" collection" : false ,
276
- " parameters" : Array [],
277
- " returns" : Object {
276
+ " parameters" : [],
277
+ " returns" : {
278
278
" collection" : true ,
279
279
" type" : " A" ,
280
280
},
@@ -288,7 +288,7 @@ Object {
288
288
` ;
289
289
290
290
exports [` markdown-helpers rawTypeToTypeInformation() should map an unknown types correctly 1` ] = `
291
- Object {
291
+ {
292
292
" collection" : false ,
293
293
" type" : " MyType" ,
294
294
}
0 commit comments