diff --git a/packages/algoliasearch/lite/model/highlightResult.ts b/packages/algoliasearch/lite/model/highlightResult.ts index 5e0575dbc..0b5ec518f 100644 --- a/packages/algoliasearch/lite/model/highlightResult.ts +++ b/packages/algoliasearch/lite/model/highlightResult.ts @@ -4,4 +4,5 @@ import type { HighlightResultOption } from './highlightResultOption'; export type HighlightResult = | HighlightResultOption + | HighlightResultOption[] | Record; diff --git a/packages/algoliasearch/lite/model/snippetResult.ts b/packages/algoliasearch/lite/model/snippetResult.ts index 162577983..7a139f4d7 100644 --- a/packages/algoliasearch/lite/model/snippetResult.ts +++ b/packages/algoliasearch/lite/model/snippetResult.ts @@ -4,4 +4,5 @@ import type { SnippetResultOption } from './snippetResultOption'; export type SnippetResult = | Record - | SnippetResultOption; + | SnippetResultOption + | SnippetResultOption[]; diff --git a/packages/client-search/model/highlightResult.ts b/packages/client-search/model/highlightResult.ts index 5e0575dbc..0b5ec518f 100644 --- a/packages/client-search/model/highlightResult.ts +++ b/packages/client-search/model/highlightResult.ts @@ -4,4 +4,5 @@ import type { HighlightResultOption } from './highlightResultOption'; export type HighlightResult = | HighlightResultOption + | HighlightResultOption[] | Record; diff --git a/packages/client-search/model/snippetResult.ts b/packages/client-search/model/snippetResult.ts index 162577983..7a139f4d7 100644 --- a/packages/client-search/model/snippetResult.ts +++ b/packages/client-search/model/snippetResult.ts @@ -4,4 +4,5 @@ import type { SnippetResultOption } from './snippetResultOption'; export type SnippetResult = | Record - | SnippetResultOption; + | SnippetResultOption + | SnippetResultOption[]; diff --git a/packages/recommend/model/highlightResult.ts b/packages/recommend/model/highlightResult.ts index 5e0575dbc..0b5ec518f 100644 --- a/packages/recommend/model/highlightResult.ts +++ b/packages/recommend/model/highlightResult.ts @@ -4,4 +4,5 @@ import type { HighlightResultOption } from './highlightResultOption'; export type HighlightResult = | HighlightResultOption + | HighlightResultOption[] | Record; diff --git a/packages/recommend/model/snippetResult.ts b/packages/recommend/model/snippetResult.ts index 162577983..7a139f4d7 100644 --- a/packages/recommend/model/snippetResult.ts +++ b/packages/recommend/model/snippetResult.ts @@ -4,4 +4,5 @@ import type { SnippetResultOption } from './snippetResultOption'; export type SnippetResult = | Record - | SnippetResultOption; + | SnippetResultOption + | SnippetResultOption[];