Correctly type `preset` parameter
carderne opened this issue · comments
Typing issue
The additionalSearchParameters
or collectionSpecificSearchParameters
appears to accept a preset
parameter to use Typesense Presets.
But if I try:
collectionSpecificSearchParameters: {
collection_a: {
preset: "preset_1",
},
collection_b: {
preset: "preset_2",
},
Sorry didn't realise how fresh this is even in typesense-js
!
@carderne I just published v2.7.0-5
. Could you upgrade to it and see if that fixes the typing issue?
I'm still getting
Property 'query_by' is missing in type '{ preset: string; }'
but required in type 'SearchParametersWithQueryBy'
Ah I missed a spot. Could you check in v2.7.0-6
.
Yup, working now!