File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ export default {
186
186
Returns sidebar-related data. The returned object has the following type:
187
187
188
188
``` ts
189
- export interface Sidebar {
189
+ export interface DocSidebar {
190
190
isOpen: Ref <boolean >
191
191
sidebar: ComputedRef <DefaultTheme .SidebarItem []>
192
192
sidebarGroups: ComputedRef <DefaultTheme .SidebarItem []>
Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ declare const theme: {
20
20
export default theme
21
21
export type { DefaultTheme } from './types/default-theme.js'
22
22
23
- export const useSidebar : ( ) => DefaultTheme . SideBar
23
+ export const useSidebar : ( ) => DefaultTheme . DocSideBar
Original file line number Diff line number Diff line change
1
+ import { type ComputedRef , type Ref } from 'vue'
1
2
import type { DocSearchProps } from './docsearch.js'
2
3
import type { LocalSearchTranslations } from './local-search.js'
3
4
import type { PageData } from './shared.js'
@@ -222,7 +223,7 @@ export namespace DefaultTheme {
222
223
/**
223
224
* ReturnType of `useSidebar`
224
225
*/
225
- export interface Sidebar {
226
+ export interface DocSidebar {
226
227
isOpen : Ref < boolean >
227
228
sidebar : ComputedRef < SidebarItem [ ] >
228
229
sidebarGroups : ComputedRef < SidebarItem [ ] >
You can’t perform that action at this time.
0 commit comments