Issue with Typesense-JS Library and Return Value Types
TLDR Adam asked for help with a return value discrepancy in a typescript project. Jason confirmed the issue and recommended submitting a GitHub issue. A link to the issue was provided.
Feb 14, 2023 (7 months ago)
Adam
03:19 PMclient.collections().update()
call. typescript says that the return value of update
is of type CollectionSchema
. however, it looks like what actually comes back from the promise is either a CollectionFieldSchema
or CollectionUpdateFieldSchema
. I can submit an issue to github, but I wanted to check if I was missing something obvious first. further details added in a threadAdam
03:19 PMupdate
isAdam
03:20 PMAdam
03:21 PMJason
04:21 PMAdam
04:21 PMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Troubleshooting Typesense Document Update Error
Mehdi had an issue with updating Typesense documents which returned a '404 Not Found' error. Kishore Nallan after several debugging steps, discovered Mehdi was using an outdated Typesense version. The issue was resolved after upgrading Typesense.


TypeScript Typings Issue with Search Response Types
Dave encounters a problem with TypeScript typings related to SearchResponse types, Jason proposes a possible fix but awaits for Damian's input.
Fixing "bad json" error in Typesense 0.24
Adam experiences "bad json" error when creating collections in Typesense 0.24. Jason identifies a typo in the docs causing the error and helps troubleshoot additional errors.


