@@ -43,7 +43,7 @@ exports[`signature > analyzeSignature() > complexArrayParameter 1`] = `
43
43
" returns" : " T" ,
44
44
" seeAlsos" : [],
45
45
" since" : " " ,
46
- " sourcePath" : " test/scripts/apidoc/signature.example.ts#L358 " ,
46
+ " sourcePath" : " test/scripts/apidoc/signature.example.ts#L367 " ,
47
47
" throws" : undefined,
48
48
}
49
49
`;
@@ -93,6 +93,7 @@ exports[`signature > analyzeSignature() > expected and actual methods are equal
93
93
"optionsInterfaceParamMethodWithDefaults",
94
94
"optionsParamMethod",
95
95
"optionsTypeParamMethodWithDefaults",
96
+ "recordParamMethod",
96
97
"requiredNumberParamMethod",
97
98
"stringUnionParamMethod",
98
99
]
@@ -198,7 +199,7 @@ exports[`signature > analyzeSignature() > methodWithDeprecated 1`] = `
198
199
" test.apidoc.methodWithExample()" ,
199
200
],
200
201
" since" : " " ,
201
- " sourcePath" : " test/scripts/apidoc/signature.example.ts#L278 " ,
202
+ " sourcePath" : " test/scripts/apidoc/signature.example.ts#L287 " ,
202
203
" throws" : undefined ,
203
204
}
204
205
`;
@@ -250,7 +251,7 @@ exports[`signature > analyzeSignature() > methodWithDeprecatedOption 1`] = `
250
251
" returns" : " number" ,
251
252
" seeAlsos" : [],
252
253
" since" : " " ,
253
- " sourcePath" : " test/scripts/apidoc/signature.example.ts#L299 " ,
254
+ " sourcePath" : " test/scripts/apidoc/signature.example.ts#L308 " ,
254
255
" throws" : undefined,
255
256
}
256
257
`;
@@ -268,7 +269,7 @@ exports[`signature > analyzeSignature() > methodWithExample 1`] = `
268
269
" returns" : " number" ,
269
270
" seeAlsos" : [],
270
271
" since" : " " ,
271
- " sourcePath" : " test/scripts/apidoc/signature.example.ts#L267 " ,
272
+ " sourcePath" : " test/scripts/apidoc/signature.example.ts#L276 " ,
272
273
" throws" : undefined,
273
274
}
274
275
`;
@@ -288,7 +289,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkers 1`] = `
288
289
" test.apidoc.methodWithDeprecated()" ,
289
290
],
290
291
" since" : " " ,
291
- " sourcePath" : " test/scripts/apidoc/signature.example.ts#L326 " ,
292
+ " sourcePath" : " test/scripts/apidoc/signature.example.ts#L335 " ,
292
293
" throws" : undefined ,
293
294
}
294
295
`;
@@ -308,7 +309,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkersAndBacktic
308
309
" test.apidoc.methodWithDeprecated() with parameter <code>bar</code> and <code>baz</code>." ,
309
310
],
310
311
" since" : " " ,
311
- " sourcePath" : " test/scripts/apidoc/signature.example.ts#L336 " ,
312
+ " sourcePath" : " test/scripts/apidoc/signature.example.ts#L345 " ,
312
313
" throws" : undefined ,
313
314
}
314
315
`;
@@ -325,7 +326,7 @@ exports[`signature > analyzeSignature() > methodWithSinceMarker 1`] = `
325
326
" returns" : " number" ,
326
327
" seeAlsos" : [],
327
328
" since" : " 1.0.0" ,
328
- " sourcePath" : " test/scripts/apidoc/signature.example.ts#L345 " ,
329
+ " sourcePath" : " test/scripts/apidoc/signature.example.ts#L354 " ,
329
330
" throws" : undefined ,
330
331
}
331
332
`;
@@ -342,7 +343,7 @@ exports[`signature > analyzeSignature() > methodWithThrows 1`] = `
342
343
" returns" : " number" ,
343
344
" seeAlsos" : [],
344
345
" since" : " " ,
345
- " sourcePath" : " test/scripts/apidoc/signature.example.ts#L287 " ,
346
+ " sourcePath" : " test/scripts/apidoc/signature.example.ts#L296 " ,
346
347
" throws" : " a Faker error" ,
347
348
}
348
349
`;
@@ -491,7 +492,7 @@ It also has a more complex description.</p>
491
492
" returns" : " number" ,
492
493
" seeAlsos" : [],
493
494
" since" : " " ,
494
- " sourcePath" : " test/scripts/apidoc/signature.example.ts#L217 " ,
495
+ " sourcePath" : " test/scripts/apidoc/signature.example.ts#L226 " ,
495
496
" throws" : undefined,
496
497
}
497
498
`;
@@ -530,15 +531,15 @@ exports[`signature > analyzeSignature() > optionsInterfaceParamMethodWithDefault
530
531
" returns" : " number" ,
531
532
" seeAlsos" : [],
532
533
" since" : " " ,
533
- " sourcePath" : " test/scripts/apidoc/signature.example.ts#L253 " ,
534
+ " sourcePath" : " test/scripts/apidoc/signature.example.ts#L262 " ,
534
535
" throws" : undefined ,
535
536
}
536
537
`;
537
538
538
539
exports[`signature > analyzeSignature() > optionsParamMethod 1`] = `
539
540
{
540
541
" deprecated" : undefined ,
541
- " description" : " <p>Test with a function parameters .</p>
542
+ " description" : " <p>Test with an options parameter .</p>
542
543
" ,
543
544
" examples" : " <div class=\\ " language - ts \\" ><button title=\\ " Copy Code \\" class=\\ " copy \\" ></button><span class=\\ " lang \\" >ts</span><pre v-pre class=\\ " shiki material - theme - palenight \\" ><code><span class=\\ " line \\" ><span style=\\ " color :#82AAFF \\" >optionsParamMethod</span><span style=\\ " color :#BABED8 \\" >(options: </span><span style=\\ " color :#89DDFF \\" >{</span></span>
544
545
<span class =\\"line\\"><span style =\\"color:#BABED8\\"> </span><span style =\\"color:#F07178\\">a</span><span style =\\"color:#89DDFF\\">:</span><span style =\\"color:#BABED8\\"> number</span><span style =\\"color:#89DDFF\\">,</span></span>
@@ -552,7 +553,7 @@ exports[`signature > analyzeSignature() > optionsParamMethod 1`] = `
552
553
" parameters" : [
553
554
{
554
555
" default" : undefined ,
555
- " description" : " <p>The function parameter.</p>
556
+ " description" : " <p>The options parameter.</p>
556
557
" ,
557
558
" name" : " options" ,
558
559
" type" : " { ... }" ,
@@ -596,7 +597,7 @@ exports[`signature > analyzeSignature() > optionsParamMethod 1`] = `
596
597
" returns" : " number" ,
597
598
" seeAlsos" : [],
598
599
" since" : " " ,
599
- " sourcePath" : " test/scripts/apidoc/signature.example.ts#L187 " ,
600
+ " sourcePath" : " test/scripts/apidoc/signature.example.ts#L196 " ,
600
601
" throws" : undefined,
601
602
}
602
603
`;
@@ -635,7 +636,32 @@ exports[`signature > analyzeSignature() > optionsTypeParamMethodWithDefaults 1`]
635
636
" returns" : " number" ,
636
637
" seeAlsos" : [],
637
638
" since" : " " ,
638
- " sourcePath" : " test/scripts/apidoc/signature.example.ts#L235" ,
639
+ " sourcePath" : " test/scripts/apidoc/signature.example.ts#L244" ,
640
+ " throws" : undefined ,
641
+ }
642
+ `;
643
+
644
+ exports[`signature > analyzeSignature() > recordParamMethod 1`] = `
645
+ {
646
+ " deprecated" : undefined ,
647
+ " description" : " <p>Test with a Record parameter.</p>
648
+ " ,
649
+ " examples" : " <div class=\\ " language - ts \\" ><button title=\\ " Copy Code \\" class=\\ " copy \\" ></button><span class=\\ " lang \\" >ts</span><pre v-pre class=\\ " shiki material - theme - palenight \\" ><code><span class=\\ " line \\" ><span style=\\ " color :#82AAFF \\" >recordParamMethod</span><span style=\\ " color :#BABED8 \\" >(object: Record</span><span style=\\ " color :#89DDFF \\" ><</span><span style=\\ " color :#BABED8 \\" >string</span><span style=\\ " color :#89DDFF \\" >,</span><span style=\\ " color :#BABED8 \\" > number</span><span style=\\ " color :#89DDFF \\" >></span><span style=\\ " color :#BABED8 \\" >): number</span></span></code></pre>
650
+ < / div > " ,
651
+ " name" : " recordParamMethod" ,
652
+ " parameters" : [
653
+ {
654
+ " default" : undefined ,
655
+ " description" : " <p>The Record parameter.</p>
656
+ " ,
657
+ " name" : " object" ,
658
+ " type" : " Record<string, number>" ,
659
+ },
660
+ ],
661
+ " returns" : " number" ,
662
+ " seeAlsos" : [],
663
+ " since" : " " ,
664
+ " sourcePath" : " test/scripts/apidoc/signature.example.ts#L182" ,
639
665
" throws" : undefined ,
640
666
}
641
667
`;
0 commit comments