hi everyone - I’m working on a project with nextJS...
# community-help
a
hi everyone - I’m working on a project with nextJS/typescript and the typesense-js library and have a question about the return value of the
client.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 thread
what typescript thinks the return value of
update
is
code snippet from my project
response from the server
j
Ah hmm, yeah that’s an oversight. A GitHub issue would be great
a
you bet. thanks very much!
thanks for your help with this 🙂 https://github.com/typesense/typesense-js/issues/150