Skip to content

Commit 09eaf64

Browse files
committed
Make visibleTodos a required property
Since TodoList's todos property is required, visibleTodos should be required too.
1 parent 42e7afd commit 09eaf64

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/basics/ExampleTodoList.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ App.propTypes = {
155155
visibleTodos: PropTypes.arrayOf(PropTypes.shape({
156156
text: PropTypes.string.isRequired,
157157
completed: PropTypes.bool.isRequired
158-
})),
158+
}).isRequired).isRequired,
159159
visibilityFilter: PropTypes.oneOf([
160160
'SHOW_ALL',
161161
'SHOW_COMPLETED',

docs/basics/UsageWithReact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ App.propTypes = {
343343
visibleTodos: PropTypes.arrayOf(PropTypes.shape({
344344
text: PropTypes.string.isRequired,
345345
completed: PropTypes.bool.isRequired
346-
})),
346+
}).isRequired).isRequired,
347347
visibilityFilter: PropTypes.oneOf([
348348
'SHOW_ALL',
349349
'SHOW_COMPLETED',

0 commit comments

Comments
 (0)