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

allow ciphers to be passed into search service

This commit is contained in:
Kyle Spearrin
2018-08-16 23:32:37 -04:00
parent f16fc58d70
commit 9ba3c17626
2 changed files with 14 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ export abstract class SearchService {
clearIndex: () => void;
isSearchable: (query: string) => boolean;
indexCiphers: () => Promise<void>;
searchCiphers: (query: string, filter?: (cipher: CipherView) => boolean) => Promise<CipherView[]>;
searchCiphers: (query: string, filter?: (cipher: CipherView) => boolean,
ciphers?: CipherView[]) => Promise<CipherView[]>;
searchCiphersBasic: (ciphers: CipherView[], query: string) => CipherView[];
}