mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 23:20:02 +00:00
12 lines
447 B
TypeScript
12 lines
447 B
TypeScript
import type { StoredDocSearchHit } from './types';
|
|
declare type CreateStoredSearchesOptions = {
|
|
key: string;
|
|
limit?: number;
|
|
};
|
|
export declare type StoredSearchPlugin<TItem> = {
|
|
add: (item: TItem) => void;
|
|
remove: (item: TItem) => void;
|
|
getAll: () => TItem[];
|
|
};
|
|
export declare function createStoredSearches<TItem extends StoredDocSearchHit>({ key, limit, }: CreateStoredSearchesOptions): StoredSearchPlugin<TItem>;
|
|
export {};
|