@@ -336,7 +336,7 @@ declare namespace __React {
336
336
ref ?: string | ( ( component : T ) => any ) ;
337
337
}
338
338
339
- interface DOMAttributes extends Props < DOMComponent < any > > {
339
+ interface DOMAttributesBase < T > extends Props < T > {
340
340
onCopy ?: ClipboardEventHandler ;
341
341
onCut ?: ClipboardEventHandler ;
342
342
onPaste ?: ClipboardEventHandler ;
@@ -377,6 +377,9 @@ declare namespace __React {
377
377
} ;
378
378
}
379
379
380
+ interface DOMAttributes extends DOMAttributesBase < DOMComponent < any > > {
381
+ }
382
+
380
383
// This interface is not complete. Only properties accepting
381
384
// unitless numbers are listed here (see CSSProperty.js in React)
382
385
interface CSSProperties {
@@ -406,9 +409,7 @@ declare namespace __React {
406
409
[ propertyName : string ] : any ;
407
410
}
408
411
409
- interface HTMLAttributes extends DOMAttributes {
410
- ref ?: string | ( ( component : HTMLComponent ) => void ) ;
411
-
412
+ interface HTMLAttributesBase < T > extends DOMAttributesBase < T > {
412
413
accept ?: string ;
413
414
acceptCharset ?: string ;
414
415
accessKey ?: string ;
@@ -528,6 +529,9 @@ declare namespace __React {
528
529
unselectable ?: boolean ;
529
530
}
530
531
532
+ interface HTMLAttributes extends HTMLAttributesBase < HTMLComponent > {
533
+ }
534
+
531
535
interface SVGElementAttributes extends HTMLAttributes {
532
536
viewBox ?: string ;
533
537
preserveAspectRatio ?: string ;
@@ -1133,7 +1137,7 @@ declare module "react/addons" {
1133
1137
ref ?: string | ( ( component : T ) => any ) ;
1134
1138
}
1135
1139
1136
- interface DOMAttributes extends Props < DOMComponent < any > > {
1140
+ interface DOMAttributesBase < T > extends Props < T > {
1137
1141
onCopy ?: ClipboardEventHandler ;
1138
1142
onCut ?: ClipboardEventHandler ;
1139
1143
onPaste ?: ClipboardEventHandler ;
@@ -1174,6 +1178,9 @@ declare module "react/addons" {
1174
1178
} ;
1175
1179
}
1176
1180
1181
+ interface DOMAttributes extends DOMAttributesBase < DOMComponent < any > > {
1182
+ }
1183
+
1177
1184
// This interface is not complete. Only properties accepting
1178
1185
// unitless numbers are listed here (see CSSProperty.js in React)
1179
1186
interface CSSProperties {
@@ -1203,9 +1210,7 @@ declare module "react/addons" {
1203
1210
[ propertyName : string ] : any ;
1204
1211
}
1205
1212
1206
- interface HTMLAttributes extends DOMAttributes {
1207
- ref ?: string | ( ( component : HTMLComponent ) => void ) ;
1208
-
1213
+ interface HTMLAttributesBase < T > extends DOMAttributesBase < T > {
1209
1214
accept ?: string ;
1210
1215
acceptCharset ?: string ;
1211
1216
accessKey ?: string ;
@@ -1325,6 +1330,9 @@ declare module "react/addons" {
1325
1330
unselectable ?: boolean ;
1326
1331
}
1327
1332
1333
+ interface HTMLAttributes extends HTMLAttributesBase < HTMLComponent > {
1334
+ }
1335
+
1328
1336
interface SVGElementAttributes extends HTMLAttributes {
1329
1337
viewBox ?: string ;
1330
1338
preserveAspectRatio ?: string ;
0 commit comments