I don't know whether this applies to all Flowutility types in general, but React makes extensive use of $Shape (and so do we!) - react-docgen (3.0.0-rc.1) seems to fail at parsing this.
Example component props:
// components/Label.js
type Props = $Shape<{
/** Content to place inside .ui.label element */
children?: React.Node,
/** Classes for .ui.label element */
classes?: string,
/** Type of the label (icon, favicon, image, notification, state) */
type?: 'icon' | 'favicon' | 'image' | 'notification' | 'state',
/** Tooltip (data-content, data-position, data-delay) */
tooltip?: Tooltip
}>;
I don't know whether this applies to all Flow utility types in general, but React makes extensive use of
$Shape
(and so do we!) -react-docgen
(3.0.0-rc.1) seems to fail at parsing this.Example component props:
With
$Shape
:Without
$Shape
: