vuepress-theme-hope
Version:
A light vuepress theme with tons of features
13 lines (12 loc) • 526 B
TypeScript
import type { ComputedRef, InjectionKey } from "vue";
import type { SidebarItem } from "@theme-hope/typings/sidebar";
export type SidebarItemsRef = ComputedRef<SidebarItem[]>;
export declare const sidebarItemsSymbol: InjectionKey<SidebarItemsRef>;
/** Create sidebar items ref and provide as global computed in setup */
export declare const setupSidebarItems: () => void;
/**
* Inject sidebar items global computed
*
* @returns Sidebar items global computed
*/
export declare const useSidebarItems: () => SidebarItemsRef;