mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-19 07:35:48 +02:00
e516692559
* Update typescript to 3.6.5 along with tslint to latest. * Upgrade @types/node to 12.12.54 to get rid of compile errors. * Update tslint. * Use @types/node 10.17.28 instead
12 lines
494 B
TypeScript
12 lines
494 B
TypeScript
import { CipherView } from '../models/view/cipherView';
|
|
|
|
export abstract class SearchService {
|
|
clearIndex: () => void;
|
|
isSearchable: (query: string) => boolean;
|
|
indexCiphers: () => Promise<void>;
|
|
searchCiphers: (query: string,
|
|
filter?: ((cipher: CipherView) => boolean) | (((cipher: CipherView) => boolean)[]),
|
|
ciphers?: CipherView[]) => Promise<CipherView[]>;
|
|
searchCiphersBasic: (ciphers: CipherView[], query: string, deleted?: boolean) => CipherView[];
|
|
}
|