1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 18:23:31 +00:00

search service implementation with lunr

This commit is contained in:
Kyle Spearrin
2018-08-13 09:42:52 -04:00
parent 4ca7a9709e
commit b724448081
7 changed files with 169 additions and 58 deletions

View File

@@ -1,6 +1,7 @@
import { CipherView } from '../models/view/cipherView';
export abstract class SearchService {
clearIndex: () => void;
indexCiphers: () => Promise<void>;
searchCiphers: (query: string) => Promise<CipherView[]>;
searchCiphers: (query: string, filter?: (cipher: CipherView) => boolean) => Promise<CipherView[]>;
}