Skip to content

Commit

Permalink
remove rawData array
Browse files Browse the repository at this point in the history
  • Loading branch information
cea2aj committed Sep 29, 2023
1 parent fbe7b92 commit f53d651
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/search-core.result.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface Result<T = Record<string, unknown>>
| [index?](./search-core.result.index.md) | number | <i>(Optional)</i> The index of the result among the other results in the search. |
| [link?](./search-core.result.link.md) | string | <i>(Optional)</i> A hyperlink associated with the result. |
| [name?](./search-core.result.name.md) | string | <i>(Optional)</i> The name of the result. |
| [rawData](./search-core.result.rawdata.md) | T \| T\[\] | Raw entity profile data in the shape of key-value pairs, or as an array of key-value pairs. |
| [rawData](./search-core.result.rawdata.md) | T | Raw entity profile data in the shape of key-value pairs, or as an array of key-value pairs. |
| [segment?](./search-core.result.segment.md) | [Segment](./search-core.segment.md) | <i>(Optional)</i> A relevant segment associated with the result. Present for document verticals grouped by Segment. |
| [source](./search-core.result.source.md) | [Source](./search-core.source.md) | Represents the source of a [Result](./search-core.result.md)<!-- -->. |

2 changes: 1 addition & 1 deletion docs/search-core.result.rawdata.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Raw entity profile data in the shape of key-value pairs, or as an array of key-v
<b>Signature:</b>

```typescript
rawData: T | T[];
rawData: T;
```
2 changes: 1 addition & 1 deletion etc/search-core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ export interface Result<T = Record<string, unknown>> {
index?: number;
link?: string;
name?: string;
rawData: T | T[];
rawData: T;
segment?: Segment;
source: Source;
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/search-core",
"version": "2.5.0-beta.2",
"version": "2.5.0-beta.3",
"description": "Typescript Networking Library for the Yext Search API",
"main": "./dist/commonjs/src/index.js",
"module": "./dist/esm/src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/models/searchservice/response/Result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { DocumentResult } from './DocumentResult';
*/
export interface Result<T = Record<string, unknown>> {
/** Raw entity profile data in the shape of key-value pairs, or as an array of key-value pairs. */
rawData: T | T[],
rawData: T,
/** {@inheritDoc Source} */
source: Source,
/** The index of the result among the other results in the search. */
Expand Down

0 comments on commit f53d651

Please sign in to comment.