mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-08-28 16:20:04 +02:00
minor optimization of index.d.ts
This commit is contained in:
@@ -264,7 +264,7 @@ Extern Projects & Plugins:
|
||||
- [Latin Charset Encoder Presets](doc/encoder.md)
|
||||
- [Language Specific Preset](doc/encoder.md)
|
||||
- [Custom Encoder](doc/encoder.md#custom-encoder)
|
||||
- [Non-Blocking Runtime Balancer (Async)](doc/async.md)
|
||||
- [Async Non-Blocking Runtime Balancer](doc/async.md)
|
||||
- [Worker Indexes](doc/worker.md)
|
||||
- [Worker Index Options](doc/worker.md#worker-index-options)
|
||||
- [Resolver (Complex Queries)](doc/resolver.md)
|
||||
@@ -286,10 +286,10 @@ Extern Projects & Plugins:
|
||||
- [Clickhouse](doc/persistent-clickhouse.md)
|
||||
- [Custom Score Function](doc/customization.md)
|
||||
- [Custom Builds](doc/custom-builds.md)
|
||||
- [Extended Keystores (In-Memory)](doc/keystore.md)
|
||||
- [Extended Keystores (In-Memory Index)](doc/keystore.md)
|
||||
- [Best Practices](#best-practices)
|
||||
- [Page-Load / Fast-Boot](#page-load--fast-boot)
|
||||
- [Use numeric IDs](#use-numeric-ids)
|
||||
- [Prefer numeric typed IDs](#use-numeric-ids)
|
||||
|
||||
## Load Library (Node.js, ESM, Legacy Browser)
|
||||
|
||||
|
11
index.d.ts
vendored
11
index.d.ts
vendored
@@ -382,7 +382,7 @@ declare module "flexsearch" {
|
||||
* * Document options: https://github.com/nextapps-de/flexsearch#document-options
|
||||
*/
|
||||
|
||||
type WorkerType = boolean | WorkerURL | WorkerPath
|
||||
type WorkerType = boolean | WorkerURL | WorkerPath;
|
||||
|
||||
type DocumentOptions<
|
||||
D extends DocumentData = DocumentData,
|
||||
@@ -415,6 +415,7 @@ declare module "flexsearch" {
|
||||
doc: D | null;
|
||||
field?: FieldName[];
|
||||
tag?: FieldName[];
|
||||
highlight?: {[field: FieldName]: string};
|
||||
}>;
|
||||
|
||||
type DocumentSearchResults<
|
||||
@@ -451,10 +452,10 @@ declare module "flexsearch" {
|
||||
E extends boolean = false,
|
||||
M extends boolean = false
|
||||
> = SearchOptions<R> & {
|
||||
tag?: Object | Array<Object>;
|
||||
field?: Array<DocumentSearchOptions<D, R, E, M>> | DocumentSearchOptions<D, R, E, M> | string[] | string;
|
||||
index?: Array<DocumentSearchOptions<D, R, E, M>> | DocumentSearchOptions<D, R, E, M> | string[] | string;
|
||||
pluck?: FieldName | DocumentSearchOptions<D, R, E, M>;
|
||||
tag?: {[field: FieldName]: string} | Array<{[field: FieldName]: string}>;
|
||||
field?: Array<DocumentSearchOptions<D, R, E, M>> | DocumentSearchOptions<D, R, E, M> | FieldName[] | FieldName;
|
||||
index?: Array<DocumentSearchOptions<D, R, E, M>> | DocumentSearchOptions<D, R, E, M> | FieldName[] | FieldName;
|
||||
pluck?: FieldName | DocumentSearchOptions<D, R, E, false>;
|
||||
highlight?: HighlightOptions | TemplateResultHighlighting;
|
||||
enrich?: E;
|
||||
merge?: M;
|
||||
|
Reference in New Issue
Block a user