Updated HTMLAttributes to support data- and aria- more spceifically

The HTMLAttribute was updated to Support data-* and aria-* Attributes. Since `any` is possibly to broad, the Definition allows any type used in HTMLAttributes and DOMAttributes.
This commit is contained in:
glatzert
2016-02-25 09:43:59 +01:00
parent 443f5a9e39
commit e72758e8b7
+1 -1
View File
@@ -1845,7 +1845,7 @@ declare namespace __React {
unselectable?: boolean;
// Allows aria- and data- Attributes
[key: string]: any;
[key: string]: string | string[] | boolean | number | EventHandler<SyntheticEvent> | CSSProperties | {__html: string};
}
interface SVGAttributes extends HTMLAttributes {