Skip to content

Commit

Permalink
docs: fix type definition (#5796)
Browse files Browse the repository at this point in the history
  • Loading branch information
unional authored Dec 30, 2024
1 parent a0f5c32 commit 6625ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/expanding.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ type Person = {
id: number
name: string
age: number
children: Person[]
children?: Person[] | undefined
}

const data: Person = [
const data: Person[] = [
{ id: 1,
name: 'John',
age: 30,
Expand Down

0 comments on commit 6625ec6

Please sign in to comment.