mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-08-28 00:01:31 +02:00
add globals within index.d.ts
This commit is contained in:
6
index.d.ts
vendored
6
index.d.ts
vendored
@@ -124,6 +124,7 @@ declare module "flexsearch" {
|
||||
* * Language: https://github.com/nextapps-de/flexsearch#languages
|
||||
*/
|
||||
|
||||
global {
|
||||
type EncoderOptions = {
|
||||
rtl?: boolean;
|
||||
dedupe?: boolean;
|
||||
@@ -142,7 +143,7 @@ declare module "flexsearch" {
|
||||
minlength?: number;
|
||||
maxlength?: number;
|
||||
cache?: boolean | number;
|
||||
};
|
||||
}}
|
||||
|
||||
type EncoderSplitOptions = {
|
||||
letter?: boolean;
|
||||
@@ -710,6 +711,7 @@ declare module "flexsearch" {
|
||||
resolve(options?: DefaultResolve): SearchResults;
|
||||
}
|
||||
|
||||
global {
|
||||
export class StorageInterface {
|
||||
db: any;
|
||||
|
||||
@@ -726,7 +728,7 @@ declare module "flexsearch" {
|
||||
destroy(): Promise<void>;
|
||||
|
||||
clear(): Promise<void>;
|
||||
}
|
||||
}}
|
||||
|
||||
export class IndexedDB extends StorageInterface {
|
||||
db: IDBDatabase;
|
||||
|
Reference in New Issue
Block a user