You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
Use flow style function definition for doc
This commit is contained in:
@@ -28,9 +28,8 @@ module.exports = React.createClass({
|
|||||||
// The className to apply to the wrapping div
|
// The className to apply to the wrapping div
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
// A function that returns the children to be rendered into the element.
|
// A function that returns the children to be rendered into the element.
|
||||||
// Takes two integers which define the range of child indices to return.
|
// function getChildren(start: number, end: number): Array<React.Node>
|
||||||
// The start element is included, the end is not (as in `slice`).
|
// The start element is included, the end is not (as in `slice`).
|
||||||
// Returns an array.
|
|
||||||
// If omitted, the React child elements will be used. This parameter can be used
|
// If omitted, the React child elements will be used. This parameter can be used
|
||||||
// to avoid creating unnecessary React elements.
|
// to avoid creating unnecessary React elements.
|
||||||
getChildren: PropTypes.func,
|
getChildren: PropTypes.func,
|
||||||
|
|||||||
Reference in New Issue
Block a user