search-plus-ts
Version:
Search always with machs and highlights.
14 lines • 297 B
TypeScript
//#region src/lib/search.d.ts
interface getOptions<T> {
data: T[];
keys: (keyof T)[];
threshold?: number;
}
declare class SearchPlusTs<T> {
private fuse;
private fuseOptions;
constructor(getOptions: getOptions<T>);
search(search: string): T[];
}
//#endregion
export { SearchPlusTs };