chore: generate flow types from ts definitions

This commit is contained in:
Mikael Sand
2019-12-09 21:29:07 +02:00
parent c0ffc65609
commit aac3dc014e
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ function prepare(props) {
clean.ref = forwardedRef;
}
if (props.onPress && !props.onClick){
if (props.onPress && !props.onClick) {
clean.onClick = props.onPress;
}
+21
View File
@@ -404,6 +404,27 @@ export type MaskProps = {
...
} & CommonPathProps;
declare export var Mask: React.ComponentClass<MaskProps>;
declare export var MarkerUnits: {|
+STROKE_WIDTH: "strokeWidth", // "strokeWidth"
+USER_SPACE_ON_USE: "userSpaceOnUse" // "userSpaceOnUse"
|};
declare export var Orient: {|
+AUTO: "auto", // "auto"
+AUTO_START_REVERSE: "auto-start-reverse" // "auto-start-reverse"
|};
export interface MarkerProps {
id?: string;
viewBox?: string;
preserveAspectRatio?: string;
refX?: NumberProp;
refY?: NumberProp;
markerWidth?: NumberProp;
markerHeight?: NumberProp;
markerUnits?: $Values<typeof MarkerUnits>;
orient?: $Values<typeof Orient> | NumberProp;
}
declare export var Marker: React.ComponentClass<MarkerProps>;
export type Styles = {
[property: string]: string,
...