1export type PageMetadata = { 2 title: string; 3 sourceCodeUrl?: string; 4 maxHeadingDepth?: number; 5 /* If the page should not show up in the Algolia Docsearch results */ 6 hideFromSearch?: boolean; 7 hideTOC?: boolean; 8 headings?: { 9 title?: string; 10 level?: number; 11 type?: string; 12 _processed?: boolean; // internal HeadingManager property 13 }[]; 14}; 15 16/** 17 * Utility type. Extracts `T` type from `T[]` array. 18 */ 19export type ElementType<T extends any[]> = T extends (infer U)[] ? U : never; 20 21export type Url = { 22 pathname: string; 23}; 24 25export type NavigationRoute = { 26 name: string; 27 href: string; 28 as?: string; 29 weight?: number; 30 sidebarTitle?: string; 31 children?: NavigationRoute[]; 32 posts?: NavigationRoute[]; 33}; 34