hirsun-vuepress-theme-hope-plus
Version:
A light vuepress theme with tons of features and typewriter effect
31 lines (30 loc) • 698 B
TypeScript
import type { AutoLinkOptions, TextItemOptions } from "./utils.js";
/**
* Base nav group, has nav items children
*/
export interface NavGroup<T> extends TextItemOptions {
/**
* Link prefix of current group
*
* 当前分组的页面前缀
*/
prefix?: string;
/**
* Link of current group
*
* 当前分组的链接
*/
link?: string;
/**
* Children of current group
*
* 当前分组的子项
*/
children: T[];
}
/**
* Navbar types
*/
export type NavbarItem = AutoLinkOptions;
export type NavbarGroup = NavGroup<NavbarGroup | NavbarItem | string>;
export type NavbarOptions = (NavbarItem | NavbarGroup | string)[];