Fix some existing type definitions:

It seems like these were already wrong?
- `Symbols` -> `Symbol`
- `Use` errors unless `width` and `height` are string?
- `Svg` errors if `width` and `height` are not provided?
This commit is contained in:
Simon Buchan
2018-01-18 16:12:44 +13:00
parent ed1ab61f59
commit e37433c19c
Vendored
+6 -6
View File
@@ -205,8 +205,8 @@ export const Stop: React.ComponentClass<StopProps>;
export interface SvgProps extends ReactNative.ViewProperties {
opacity?: NumberProp,
width?: NumberProp,
height?: NumberProp,
width: NumberProp,
height: NumberProp,
viewBox?: string,
preserveAspectRatio?: string,
}
@@ -215,12 +215,12 @@ export interface SvgProps extends ReactNative.ViewProperties {
export const Svg: React.ComponentClass<SvgProps>;
export default Svg;
export interface SymbolsProps {
export interface SymbolProps {
id: string,
viewBox?: string,
preserveAspectRatio?: string,
}
export const Symbols: React.ComponentClass<SymbolsProps>;
export const Symbol: React.ComponentClass<SymbolProps>;
export interface TSpanProps extends CommonPathProps, FontProps {
dx?: NumberProp,
@@ -244,7 +244,7 @@ export const TextPath: React.ComponentClass<TextPathProps>;
export interface UseProps extends CommonPathProps {
href: string,
width?: NumberProp,
height?: NumberProp,
width?: string,
height?: string,
}
export const Use: React.ComponentClass<UseProps>;