We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdaab93 commit c1e1119Copy full SHA for c1e1119
test/index.js
@@ -493,6 +493,9 @@ test('components', async function (t) {
493
toJsxRuntime(h('b#x'), {
494
...production,
495
components: {
496
+ /**
497
+ * @param {{id: unknown}} props
498
+ */
499
b(props) {
500
// Note: types for this are working.
501
assert(props.id === 'x')
@@ -541,6 +544,9 @@ test('components', async function (t) {
541
544
542
545
passNode: true,
543
546
547
548
+ * @param {{node: unknown}} props
549
550
551
assert.ok(props.node)
552
return 'a'
@@ -559,6 +565,9 @@ test('components', async function (t) {
559
565
toJsxRuntime(h('b'), {
560
566
561
567
568
569
570
562
571
563
572
assert.equal(props.node, undefined)
564
573
0 commit comments