Skip to content

Commit 6625ec6

Browse files
authored
docs: fix type definition (#5796)
1 parent a0f5c32 commit 6625ec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/expanding.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ type Person = {
4949
id: number
5050
name: string
5151
age: number
52-
children: Person[]
52+
children?: Person[] | undefined
5353
}
5454

55-
const data: Person = [
55+
const data: Person[] = [
5656
{ id: 1,
5757
name: 'John',
5858
age: 30,

0 commit comments

Comments
 (0)