1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-09-30 23:26:42 +02:00

fix: typing of export() function

This commit is contained in:
Andrew Lee
2021-08-10 20:10:38 -04:00
committed by Thomas Wilkerling
parent 1d508c3f5c
commit 457eea1e7e

8
index.d.ts vendored
View File

@@ -58,7 +58,13 @@ declare module "flexsearch" {
where(whereObj: { [key: string]: string } | ((o: T) => boolean)): T[];
encode(str: string): string;
export(): Promise<boolean>;
export(
callback: (key: string, data: any) => any,
self?: this,
field?: string,
index_doc?: Number,
index?: Number
): Promise<boolean>;
import(exported: string): this;
}