mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
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:
Vendored
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user