Skip to content

Commit 79a7e6a

Browse files
doc(readme): updated readme static tree source documentation about children typing
1 parent 1efdbe6 commit 79a7e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Type `TreeSourceNode<T>` contains all the properties of `T` (which is a type tha
8787
If you have the full content of the tree available in an object and you don't need lazy loading, you can use `staticTreeSource(data)` to turn it into a `TreeSource`. Your `data` must be an array of root nodes which conform to `StaticTreeSourceNode<T>`:
8888

8989
* All properties from `TreeSourceNode<T>`
90-
* `children: Array<StaticTreeSourceNode<T>>`
90+
* `children?: Array<StaticTreeSourceNode<T>>`
9191

9292
### interface TreeState
9393
This interface describes the current display state of a tree. It contains two properties:

0 commit comments

Comments
 (0)