Closed
Description
I am using the react-styleguidist
package, which makes use of react-docgen
. When I want to build my styleguide, I get the following error:
Warning: Cannot parse src/Sulu/Bundle/AdminBundle/Resources/js/components/Checkbox/Checkbox.js: Error: did not recognize object of type "ObjectTypeSpreadProperty"
I am using flow for static type checks in this project, and I assume the error is because of type definitions using the spread operator, in this specific case:
type Props = {|
...SwitchProps,
className?: string,
onChange?: (checked: boolean, value?: string | number) => void,
skin: 'dark' | 'light',
|};
Is there a reason this is not supported, or is this an error?
Metadata
Metadata
Assignees
Labels
No labels