typesense/typesense-js

Typescript errors

sbleh opened this issue · 3 comments

sbleh commented

Encountered the following model error in the SearchResponseHit['highlights'][0]:

  • indices is modeled as string[] while it's a number[]
  • matched_tokens is modeled as string[] while its a string[][] array

@sbleh Thank you for catching this. I've pushed out a fix for this in 1.4.3-0. Could you give it a shot now?

sbleh commented

@jasonbosco looks good to me, thanks for the fast fix. And of course, matched_tokens can be string[] and string[][].

Thank you for confirming!