[READ-ONLY] a fast, modern browser for the npm registry
at main 28 lines 572 B view raw
1import type { NuxtLinkProps } from '#app' 2 3export type NavigationLink = { 4 name: string 5 label: string 6 iconClass?: string 7 to?: NuxtLinkProps['to'] & { name?: string } 8 href?: string 9 target?: string 10 keyshortcut?: string 11 type: 'link' 12 external?: boolean 13} 14 15export type NavigationSeparator = { 16 type: 'separator' 17} 18 19export type NavigationConfig = NavigationLink[] 20 21export type NavigationGroup = { 22 name: string 23 type: 'group' 24 label?: string 25 items: NavigationConfig 26} 27 28export type NavigationConfigWithGroups = Array<NavigationGroup | NavigationSeparator>