Merge pull request #24556 from alexdunne/master

[react-native] Added missing ReactART types
This commit is contained in:
Nathan Shively-Sanders
2018-03-27 09:47:24 -07:00
committed by GitHub
+51 -5
View File
@@ -6,6 +6,7 @@
// Tim Wang <https://github.com/timwangdev>
// Kamal Mahyuddin <https://github.com/kamal>
// Naoufal El Yousfi <https://github.com/nelyousfi>
// Alex Dunne <https://github.com/alexdunne>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
@@ -8258,26 +8259,71 @@ interface ImageEditorStatic {
): void;
}
export interface ARTShapeProps {
d: string;
strokeWidth: number;
export interface ARTNodeMixin {
opacity?: number;
originX?: number;
originY?: number;
scaleX?: number;
scaleY?: number;
scale?: number;
title?: string;
x?: number;
y?: number;
visible?: boolean;
}
export interface ARTGroupProps extends ARTNodeMixin {
width?: number;
height?: number;
}
export interface ARTClippingRectangleProps extends ARTNodeMixin {
width?: number;
height?: number;
}
export interface ARTRenderableMixin extends ARTNodeMixin {
fill?: string;
stroke?: string;
strokeCap?: "butt" | "square" | "round";
strokeDash?: number[];
stroke: string;
strokeJoin?: "bevel" | "miter" | "round";
strokeWidth?: number;
}
export interface ARTShapeProps extends ARTRenderableMixin {
d: string;
width?: number;
height?: number;
}
export interface ARTTextProps extends ARTRenderableMixin {
font?: string;
alignment?: string;
}
export interface ARTSurfaceProps {
style: StyleProp<ViewStyle>;
style?: StyleProp<ViewStyle>;
width: number;
height: number;
}
export interface ClippingRectangleStatic extends React.ComponentClass<ARTClippingRectangleProps> {}
export interface GroupStatic extends React.ComponentClass<ARTGroupProps> {}
export interface ShapeStatic extends React.ComponentClass<ARTShapeProps> {}
export interface SurfaceStatic extends React.ComponentClass<ARTSurfaceProps> {}
export interface ARTTextStatic extends React.ComponentClass<ARTTextProps> {}
export interface ARTStatic {
ClippingRectangle: ClippingRectangleStatic;
Group: GroupStatic;
Shape: ShapeStatic;
Surface: SurfaceStatic;
Text: ARTTextStatic;
}
export interface KeyboardStatic extends NativeEventEmitter {