Flow strictifying AdsManagerAudienceImages.js

Reviewed By: gkz

Differential Revision: D10414273

fbshipit-source-id: 24c7e8955d78aeede8b0644cc9934e0b7fb5aa27
This commit is contained in:
Evan Worley 2018-11-01 09:49:13 -07:00 коммит произвёл Facebook Github Bot
Родитель 66aba09251
Коммит 136dfc8312
1 изменённых файлов: 13 добавлений и 1 удалений

Просмотреть файл

@ -399,7 +399,19 @@ function extractStrokeJoin(strokeJoin) {
// Note: ART has a notion of width and height on Shape but AFAIK it's a noop in
// ReactART.
class Shape extends React.Component {
export type ShapeProps = {|
fill?: mixed,
stroke?: mixed,
strokeCap?: mixed,
strokeDash?: mixed,
strokeJoin?: mixed,
strokeWidth?: mixed,
x?: number,
y?: number,
opacity?: mixed,
|};
class Shape extends React.Component<ShapeProps> {
render() {
const props = this.props;
const path = props.d || childrenAsString(props.children);