13 lines
359 B
JavaScript
13 lines
359 B
JavaScript
export default function (documentation) {
|
|
const props = documentation.props;
|
|
if (props) {
|
|
Object.values(props).forEach((propInfo) => {
|
|
// props with default values should not be required
|
|
if (propInfo.defaultValue) {
|
|
propInfo.required = false;
|
|
}
|
|
});
|
|
}
|
|
return documentation;
|
|
}
|