1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-01-26 05:27:35 +02:00
pigallery2/backend/model/ISearchManager.ts

7 lines
386 B
TypeScript
Raw Normal View History

2016-05-04 18:34:54 +02:00
import {AutoCompleteItem} from "../../common/entities/AutoCompleteItem";
2016-05-09 21:43:52 +02:00
import {SearchResult} from "../../common/entities/SearchResult";
2016-05-04 18:34:54 +02:00
export interface ISearchManager {
2016-05-09 17:04:56 +02:00
autocomplete(text, cb:(error:any, result:Array<AutoCompleteItem>) => void);
2016-05-09 21:43:52 +02:00
search(text, cb:(error:any, result:SearchResult) => void);
instantSearch(text, cb:(error:any, result:SearchResult) => void);
2016-05-04 18:34:54 +02:00
}