File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2020import { Field , Fields } from '@_types/common'
2121import { integer } from '@_types/Numeric'
2222import { QueryContainer } from '@_types/query_dsl/abstractions'
23- import { Dictionary } from '@spec_utils/Dictionary'
23+ import { Dictionary , SingleKeyDictionary } from '@spec_utils/Dictionary'
2424import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2525
2626export enum BoundaryScanner {
@@ -151,7 +151,9 @@ export class HighlightBase {
151151
152152export class Highlight extends HighlightBase {
153153 encoder ?: HighlighterEncoder
154- fields : Dictionary < Field , HighlightField >
154+ fields :
155+ | SingleKeyDictionary < Field , HighlightField >
156+ | SingleKeyDictionary < Field , HighlightField > [ ]
155157}
156158
157159export enum HighlighterEncoder {
Original file line number Diff line number Diff line change 1818 */
1919
2020import { float } from '@_types/Numeric'
21- import { Dictionary } from '@spec_utils/Dictionary'
21+ import { SingleKeyDictionary } from '@spec_utils/Dictionary'
2222import { QueryBase } from './abstractions'
2323import { TokenPruningConfig } from './TokenPruningConfig'
2424
@@ -27,7 +27,7 @@ import { TokenPruningConfig } from './TokenPruningConfig'
2727 */
2828export class WeightedTokensQuery extends QueryBase {
2929 /** The tokens representing this query */
30- tokens : Dictionary < string , float >
30+ tokens : SingleKeyDictionary < string , float > [ ]
3131 /** Token pruning configurations */
3232 pruning_config ?: TokenPruningConfig
3333}
You can’t perform that action at this time.
0 commit comments