Closed ittus closed 5 years ago
Let's use children
instead
@egoist I fixed document instead.
Btw, in sidebar, we're using links
instead of children
interface SidebarItem {
title?: string
links: Array<SidebarItemLink>
}
Should we change links
to children
for consistency?
Should we change links to children for consistency?
Yes, we can make it fallback to links
for backward compatibility.
Sound nice! Should we do it in another pull request? In this pull request, I only fix document mistake only.
:tada: This PR is included in version 4.15.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Problem
In document, it said that:
but in code, it used
item.children
instead ofitem.links
Solution
Change
item.children
toitem.links