You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/REACT-PROPTYPES.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,8 @@ Property | Type | Default value | Description
19
19
`optionalEnum`|'News'\|'Photos'||You can ensure that your prop is limited to specific values by treating it as an enum.
20
20
`optionalUnion`|string \| number \| Promise||An object that could be one of many types
21
21
`optionalArrayOf`|<number>[]||An array of a certain type
22
-
`optionalObjectOf`|objectOf||An object with property values of a certain type
23
-
`optionalObjectWithShape`|shape||An object taking on a particular shape
22
+
`optionalObjectOf`|{ [key]: <number> }||An object with property values of a certain type
23
+
`optionalObjectWithShape`|{ color: string, fontSize: number }||An object taking on a particular shape
24
24
`requiredFunc`|func|_required_|You can chain any of the above with `isRequired` to make sure a warning is shown if the prop isn't provided.
25
25
`requiredAny`|any|_required_|A value of any data type
26
26
`customProp`|custom||
@@ -30,4 +30,4 @@ Property | Type | Default value | Description
30
30
31
31
-----
32
32
33
-
<sub>Documentation generated using **React Doc Creator v0.0.7**</sub>
33
+
<sub>Documentation generated using **React Doc Creator v0.0.9**</sub>
0 commit comments