We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
8dd3468
Object.keys
PropType.oneOf()
Component.propTypes = { foo: PropTypes.oneOf(Object.keys({ a: 1, b: 2 }))}; // react-docgen will now correctly extract the type of foo being "a" or "b"