From e72758e8b73e8a33d54e7b405df8d32989c6a90d Mon Sep 17 00:00:00 2001 From: glatzert Date: Thu, 25 Feb 2016 09:43:59 +0100 Subject: [PATCH] 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. --- react/react.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/react.d.ts b/react/react.d.ts index cadae5cb0d..c51085fb92 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -1845,7 +1845,7 @@ declare namespace __React { unselectable?: boolean; // Allows aria- and data- Attributes - [key: string]: any; + [key: string]: string | string[] | boolean | number | EventHandler | CSSProperties | {__html: string}; } interface SVGAttributes extends HTMLAttributes {