Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,16 @@ export type TextContentsOptions = {
* to your initial query, and may vary in quantity and length.
* @typedef {Object} HighlightsContentsOptions
* @property {string} [query] - The query string to use for highlights search.
* @property {number} [numSentences] - The number of sentences to return for each highlight.
* @property {number} [highlightsPerUrl] - The number of highlights to return for each URL.
* @property {number} [maxCharacters] - Maximum total characters across all highlights per URL. Characters are distributed across multiple non-contiguous highlights (default 5). If the full page is shorter than maxCharacters, the entire page is returned. Default is 2000.
* @property {number} [numSentences] - Deprecated: use maxCharacters instead. The number of sentences to return for each highlight.
* @property {number} [highlightsPerUrl] - Deprecated: use maxCharacters instead. The number of highlights to return for each URL.
*/
export type HighlightsContentsOptions = {
query?: string;
maxCharacters?: number;
/** @deprecated Use maxCharacters instead */
numSentences?: number;
/** @deprecated Use maxCharacters instead */
highlightsPerUrl?: number;
};

Expand Down