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:
committed by
Thomas Wilkerling
parent
1d508c3f5c
commit
457eea1e7e
8
index.d.ts
vendored
8
index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user