diff --git a/index.d.ts b/index.d.ts index f4ba065..1a61e90 100644 --- a/index.d.ts +++ b/index.d.ts @@ -217,9 +217,9 @@ declare module "flexsearch" { /* Index Search */ /************************************/ - export type DefaultSearchResults = Id[]; + type DefaultSearchResults = Id[]; type IntermediateSearchResults = Array; - type SearchResults = DefaultSearchResults | Resolver; + type SearchResults = DefaultSearchResults | Resolver; /** * **Document:** @@ -606,14 +606,14 @@ declare module "flexsearch" { enrich?: boolean; }; - type ResolverOptions = DefaultResolve & { - index?: Index | Document; - pluck?: FieldName; - field?: FieldName; - and?: ResolverOptions | Array>; - or?: ResolverOptions | Array>; - xor?: ResolverOptions | Array>; - not?: ResolverOptions | Array>; + type ResolverOptions = DefaultResolve & { + index?: Index | Document; + pluck?: FieldName; + field?: FieldName; + and?: ResolverOptions | Array; + or?: ResolverOptions | Array; + xor?: ResolverOptions | Array; + not?: ResolverOptions | Array; boost?: number; suggest?: boolean; resolve?: boolean; @@ -660,7 +660,7 @@ declare module "flexsearch" { addReplacer(match: string | RegExp, replace: string): this; } - export class Resolver { + export class Resolver { result: IntermediateSearchResults; constructor(options?: ResolverOptions | IntermediateSearchResults); @@ -679,7 +679,7 @@ declare module "flexsearch" { boost(boost: number): this; - resolve(options?: DefaultResolve): SearchResults; + resolve(options?: DefaultResolve): SearchResults; } class StorageInterface {