mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-09-02 02:12:46 +02:00
fix types in index.d.ts
This commit is contained in:
11
index.d.ts
vendored
11
index.d.ts
vendored
@@ -1032,13 +1032,16 @@ declare module "flexsearch" {
|
|||||||
resolve<e extends boolean = E>(options?: DefaultResolve<D, true, e>): DocumentSearchResultsWrapper<D, W, S, false, true, true, e>;
|
resolve<e extends boolean = E>(options?: DefaultResolve<D, true, e>): DocumentSearchResultsWrapper<D, W, S, false, true, true, e>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class StorageInterface {
|
export class StorageInterface<
|
||||||
|
D extends DocumentData = DocumentData,
|
||||||
|
W extends WorkerType = false
|
||||||
|
> {
|
||||||
db: any;
|
db: any;
|
||||||
|
|
||||||
constructor(name: string, config: PersistentOptions);
|
constructor(name: string, config: PersistentOptions);
|
||||||
constructor(config: string | PersistentOptions);
|
constructor(config: string | PersistentOptions);
|
||||||
|
|
||||||
mount(index: Index | Document): Promise<void>;
|
mount(index: Index | Document<D, W, StorageInterface>): Promise<void>;
|
||||||
|
|
||||||
open(): Promise<void>;
|
open(): Promise<void>;
|
||||||
|
|
||||||
@@ -1084,8 +1087,8 @@ declare module "flexsearch/db/*" {
|
|||||||
|
|
||||||
declare module "flexsearch/lang/*" {
|
declare module "flexsearch/lang/*" {
|
||||||
import { EncoderOptions } from "flexsearch";
|
import { EncoderOptions } from "flexsearch";
|
||||||
//const Options: EncoderOptions;
|
const Options: EncoderOptions;
|
||||||
export default EncoderOptions;
|
export default Options;
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html
|
// https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html
|
||||||
|
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"target": "ESNext"
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user