Skip to content

Commit 18f654f

Browse files
committed
revert breaking changes
1 parent 1fe0653 commit 18f654f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

specification/_global/search/_types/highlighting.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { Dictionary, SingleKeyDictionary } from '@spec_utils/Dictionary'
20+
import { Dictionary } from '@spec_utils/Dictionary'
2121
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2222
import { Field, Fields } from '@_types/common'
2323
import { integer } from '@_types/Numeric'
@@ -151,9 +151,7 @@ export class HighlightBase {
151151

152152
export class Highlight extends HighlightBase {
153153
encoder?: HighlighterEncoder
154-
fields:
155-
| SingleKeyDictionary<Field, HighlightField>
156-
| SingleKeyDictionary<Field, HighlightField>[]
154+
fields: Dictionary<Field, HighlightField>
157155
}
158156

159157
export enum HighlighterEncoder {

specification/_types/query_dsl/WeightedTokensQuery.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { SingleKeyDictionary } from '@spec_utils/Dictionary'
20+
import { Dictionary } from '@spec_utils/Dictionary'
2121
import { float } from '@_types/Numeric'
2222
import { QueryBase } from './abstractions'
2323
import { TokenPruningConfig } from './TokenPruningConfig'
@@ -27,7 +27,7 @@ import { TokenPruningConfig } from './TokenPruningConfig'
2727
*/
2828
export class WeightedTokensQuery extends QueryBase {
2929
/** The tokens representing this query */
30-
tokens: SingleKeyDictionary<string, float>[]
30+
tokens: Dictionary<string, float>
3131
/** Token pruning configurations */
3232
pruning_config?: TokenPruningConfig
3333
}

0 commit comments

Comments
 (0)