terriajs
Version:
Geospatial data visualization platform.
14 lines (11 loc) • 330 B
text/typescript
export type IndexBase<QueryType> = {
type: IndexType;
load(indexRootUrl: string, valueHint: QueryType): Promise<void>;
search(query: QueryType, queryOptions?: any): Promise<Set<number>>;
};
export enum IndexType {
numeric = "numeric",
enum = "enum",
text = "text"
}
export const indexTypes = Object.keys(IndexType);