File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,9 @@ type FunctionComponent<ComponentProps> = (
141
141
* Create a production element.
142
142
*/
143
143
export type Jsx = (
144
- type : unknown ,
144
+ // `any` because runtimes often have complex framework-specific types here.
145
+ // type-coverage:ignore-next-line
146
+ type : any ,
145
147
props : Props ,
146
148
key ?: string | undefined
147
149
) => JSX . Element
@@ -150,7 +152,9 @@ export type Jsx = (
150
152
* Create a development element.
151
153
*/
152
154
export type JsxDev = (
153
- type : unknown ,
155
+ // `any` because runtimes often have complex framework-specific types here.
156
+ // type-coverage:ignore-next-line
157
+ type : any ,
154
158
props : Props ,
155
159
key : string | undefined ,
156
160
isStaticChildren : boolean ,
Original file line number Diff line number Diff line change @@ -257,6 +257,9 @@ test('properties', async function (t) {
257
257
} ) ,
258
258
{
259
259
...production ,
260
+ /**
261
+ * @param {unknown } type
262
+ */
260
263
jsx ( type , props ) {
261
264
foundProps = props
262
265
return production . jsx ( type , { } )
@@ -671,6 +674,9 @@ test('react specific: `align` to `style`', async function (t) {
671
674
renderToStaticMarkup (
672
675
toJsxRuntime ( h ( 'td' , { align : 'center' } ) , {
673
676
...production ,
677
+ /**
678
+ * @param {unknown } type
679
+ */
674
680
jsx ( type , props ) {
675
681
foundProps = props
676
682
return production . jsx ( type , { } )
@@ -695,6 +701,9 @@ test('react specific: `align` to `style`', async function (t) {
695
701
renderToStaticMarkup (
696
702
toJsxRuntime ( h ( 'td' , { align : 'center' } ) , {
697
703
...production ,
704
+ /**
705
+ * @param {unknown } type
706
+ */
698
707
jsx ( type , props ) {
699
708
foundProps = props
700
709
return production . jsx ( type , { } )
You can’t perform that action at this time.
0 commit comments