andy-stack_vaultkeeper-ai/Helpers/SearchTypes.ts
Andrew Beal 679a94d173 feature: implement fuzzysearch service
refactor: rename type interfaces to use I prefix convention

Standardize naming by adding I prefix to all interface types across the codebase (StreamChunk → IStreamChunk, SearchMatch → ISearchMatch, etc.). Also rename conversationStore.ts to ConversationStore.ts for consistency.
2025-10-29 19:35:19 +00:00

18 lines
349 B
TypeScript

import { TFile } from "obsidian";
/**
* Represents a single snippet of matched content from a file
*/
export interface ISearchSnippet {
text: string;
matchIndex: number;
matchLength: number;
}
/**
* Represents all matches found in a single file
*/
export interface ISearchMatch {
file: TFile;
snippets: ISearchSnippet[];
}