UNPKG

@nuxt/content

Version:

Write your content inside your Nuxt app

16 lines (15 loc) 520 B
import type { CollectionQueryBuilder, PageCollectionItemBase } from '~/src/types'; type Section = { id: string; title: string; titles: string[]; level: number; content: string; }; export declare function generateSearchSections<T extends PageCollectionItemBase>(queryBuilder: CollectionQueryBuilder<T>, opts?: { ignoredTags?: string[]; extraFields?: Array<keyof T>; minHeading?: `h${1 | 2 | 3 | 4 | 5 | 6}`; maxHeading?: `h${1 | 2 | 3 | 4 | 5 | 6}`; }): Promise<Section[]>; export {};