notion-page-tree
Version:
Recursively fetch nested Notion pages from the root page/database/block node.
8 lines (7 loc) • 369 B
TypeScript
import lunr from 'lunr';
import { createFetchQueueWatcher } from '../../fetcher';
export declare const createPageSearchIndex: (page_collection: Awaited<ReturnType<typeof createFetchQueueWatcher>>['page_collection'], propertyNames: string[]) => {
idx: lunr.Index;
tkn: string[];
};
export declare type SearchIndexType = ReturnType<typeof createPageSearchIndex>;