File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -493,6 +493,9 @@ test('components', async function (t) {
493
493
toJsxRuntime ( h ( 'b#x' ) , {
494
494
...production ,
495
495
components : {
496
+ /**
497
+ * @param {{id: unknown} } props
498
+ */
496
499
b ( props ) {
497
500
// Note: types for this are working.
498
501
assert ( props . id === 'x' )
@@ -541,6 +544,9 @@ test('components', async function (t) {
541
544
...production ,
542
545
passNode : true ,
543
546
components : {
547
+ /**
548
+ * @param {{node: unknown} } props
549
+ */
544
550
b ( props ) {
545
551
assert . ok ( props . node )
546
552
return 'a'
@@ -559,6 +565,9 @@ test('components', async function (t) {
559
565
toJsxRuntime ( h ( 'b' ) , {
560
566
...production ,
561
567
components : {
568
+ /**
569
+ * @param {{node: unknown} } props
570
+ */
562
571
b ( props ) {
563
572
assert . equal ( props . node , undefined )
564
573
return 'a'
You can’t perform that action at this time.
0 commit comments