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 20
20
import { Field , Fields } from '@_types/common'
21
21
import { integer } from '@_types/Numeric'
22
22
import { QueryContainer } from '@_types/query_dsl/abstractions'
23
- import { Dictionary } from '@spec_utils/Dictionary'
23
+ import { Dictionary , SingleKeyDictionary } from '@spec_utils/Dictionary'
24
24
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
25
25
26
26
export enum BoundaryScanner {
@@ -151,7 +151,9 @@ export class HighlightBase {
151
151
152
152
export class Highlight extends HighlightBase {
153
153
encoder ?: HighlighterEncoder
154
- fields : Dictionary < Field , HighlightField >
154
+ fields :
155
+ | SingleKeyDictionary < Field , HighlightField >
156
+ | SingleKeyDictionary < Field , HighlightField > [ ]
155
157
}
156
158
157
159
export enum HighlighterEncoder {
Original file line number Diff line number Diff line change 18
18
*/
19
19
20
20
import { float } from '@_types/Numeric'
21
- import { Dictionary } from '@spec_utils/Dictionary'
21
+ import { SingleKeyDictionary } from '@spec_utils/Dictionary'
22
22
import { QueryBase } from './abstractions'
23
23
import { TokenPruningConfig } from './TokenPruningConfig'
24
24
@@ -27,7 +27,7 @@ import { TokenPruningConfig } from './TokenPruningConfig'
27
27
*/
28
28
export class WeightedTokensQuery extends QueryBase {
29
29
/** The tokens representing this query */
30
- tokens : Dictionary < string , float >
30
+ tokens : SingleKeyDictionary < string , float > [ ]
31
31
/** Token pruning configurations */
32
32
pruning_config ?: TokenPruningConfig
33
33
}
You can’t perform that action at this time.
0 commit comments