@@ -126,7 +126,6 @@ describe('Typescript types', () => {
126
126
< ExamplePolymorphic as = { ButtonLikeWrapper } href = ".design" />
127
127
128
128
< ExamplePolymorphic as = { AnchorLikeWrapper } href = ".design" />
129
- < ExamplePolymorphic as = { NextLink } href = ".design" />
130
129
< ExamplePolymorphic as = { ( ) => < > </ > } />
131
130
{ /* @ts -expect-error href is not valid on an empty component */ }
132
131
< ExamplePolymorphic as = { ( ) => < > </ > } href = "forbidden" />
@@ -171,7 +170,6 @@ describe('Typescript types', () => {
171
170
< ExamplePolymorphicWithRef as = { ButtonLikeWrapper } href = ".design" />
172
171
173
172
< ExamplePolymorphicWithRef as = { AnchorLikeWrapper } href = ".design" />
174
- < ExamplePolymorphicWithRef as = { NextLink } href = ".design" />
175
173
< ExamplePolymorphicWithRef as = { ( ) => < > </ > } />
176
174
{ /* @ts -expect-error href is not valid on an empty component */ }
177
175
< ExamplePolymorphicWithRef as = { ( ) => < > </ > } href = "forbidden" />
@@ -216,7 +214,6 @@ describe('Typescript types', () => {
216
214
< AdvancedPolymorphic as = { ButtonLikeWrapper } href = ".design" />
217
215
218
216
< AdvancedPolymorphic as = { AnchorLikeWrapper } href = ".design" />
219
- < AdvancedPolymorphic as = { NextLink } href = ".design" />
220
217
< AdvancedPolymorphic as = { ( ) => < > </ > } />
221
218
{ /* @ts -expect-error href is not valid on an empty component */ }
222
219
< AdvancedPolymorphic as = { ( ) => < > </ > } href = "forbidden" />
@@ -261,7 +258,6 @@ describe('Typescript types', () => {
261
258
< AdvancedPolymorphicWithRef as = { ButtonLikeWrapper } href = ".design" />
262
259
263
260
< AdvancedPolymorphicWithRef as = { AnchorLikeWrapper } href = ".design" />
264
- < AdvancedPolymorphicWithRef as = { NextLink } href = ".design" />
265
261
< AdvancedPolymorphicWithRef as = { ( ) => < > </ > } />
266
262
{ /* @ts -expect-error href is not valid on an empty component */ }
267
263
< AdvancedPolymorphicWithRef as = { ( ) => < > </ > } href = "forbidden" />
@@ -307,9 +303,8 @@ describe('Typescript types', () => {
307
303
308
304
< ExampleInferred as = { AnchorLikeWrapper } href = ".design" />
309
305
310
- { /** @ts -expect-error TODO: href is not valid on an empty component. See {@link InferredPolymorphicProps} */ }
311
306
< ExampleInferred as = { ( ) => < > </ > } />
312
- { /** TODO: ts-expect-error href is not valid on an empty component. See {@link InferredPolymorphicProps}*/ }
307
+ { /** @ ts -expect-error href is not valid on an empty component. See {@link InferredPolymorphicProps}*/ }
313
308
< ExampleInferred as = { ( ) => < > </ > } href = "forbidden" />
314
309
</ > ;
315
310
} ) ;
@@ -358,9 +353,8 @@ describe('Typescript types', () => {
358
353
359
354
< ExampleInferredDefaultButton as = { AnchorLikeWrapper } href = ".design" />
360
355
361
- { /** @ts -expect-error TODO: href is not valid on an empty component. See {@link InferredPolymorphicProps} */ }
362
356
< ExampleInferredDefaultButton as = { ( ) => < > </ > } />
363
- { /** TODO: ts-expect-error href is not valid on an empty component. See {@link InferredPolymorphicProps}*/ }
357
+ { /** @ ts -expect-error href is not valid on an empty component. See {@link InferredPolymorphicProps}*/ }
364
358
< ExampleInferredDefaultButton as = { ( ) => < > </ > } href = "forbidden" />
365
359
</ > ;
366
360
} ) ;
0 commit comments