Adding SvgAttributes

Unfortunately SvgAttributes require union types and cannot be properly
typed.
This commit is contained in:
Phips Peter
2014-09-24 11:09:21 -07:00
parent e8c13a940c
commit 46997c99af

44
react/react.d.ts vendored
View File

@@ -341,7 +341,49 @@ declare module "react" {
}
interface SvgAttributes extends EventAttributes {
cx?: any;
cy?: any;
d?: any;
dx?: any;
dy?: any;
fill?: any;
fillOpacity?: any;
fontFamily?: any;
fontSize?: any;
fx?: any;
fy?: any;
gradientTransform?: any;
gradientUnits?: any;
markerEnd?: any;
markerMid?: any;
markerStart?: any;
offset?: any;
opacity?: any;
patternContentUnits?: any;
patternUnits?: any;
points?: any;
preserveAspectRatio?: any;
r?: any;
rx?: any;
ry?: any;
spreadMethod?: any;
stopColor?: any;
stopOpacity?: any;
stroke?: any;
strokeDasharray?: any;
strokeLinecap?: any;
strokeOpacity?: any;
strokeWidth?: any;
textAnchor?: any;
transform?: any;
version?: any;
viewBox?: any;
x1?: any;
x2?: any;
x?: any;
y1?: any;
y2?: any;
y?: any;
}
interface DomElement extends Factory<DomAttributes> {}