typesense / typesense-js

JavaScript / TypeScript client for Typesense
https://typesense.org/docs/api
Apache License 2.0
393 stars 74 forks source link

fix: missing type for field values on interface SearchResponseHit #213

Closed oliealex closed 1 month ago

oliealex commented 1 month ago

Change Summary

export interface SearchResponseHit<T extends DocumentSchema> interface is missing values.

Example of a response received.

highlights [
  {
    field: 'book',
    indices: [ 0 ],
    matched_tokens: [ [Array] ],
    snippets: [ '<em>book1</em>' ],
    values: [ '<em>book1</em>' ]
  }
]

PR Checklist

jasonbosco commented 1 month ago

Thank you!