File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
tests/env/typescript-node/src Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -29,21 +29,20 @@ const client = new MeiliSearch(config)
2929 // console.log(index.something) -> ERROR
3030 } )
3131
32- const searchParams : SearchParams < Movie > = {
32+ const searchParams : SearchParams = {
3333 limit : 5 ,
3434 attributesToRetrieve : [ 'title' , 'genre' ] ,
3535 attributesToHighlight : [ 'title' ] ,
3636 // test: true -> ERROR Test does not exist on type SearchParams
3737 }
3838 indexes . map ( ( index : IndexResponse ) => index . uid )
39- const res : SearchResponse < Movie , SearchParams < Movie > > = await index . search (
39+ const res : SearchResponse < Movie > = await index . search (
4040 'avenger' ,
4141 searchParams
4242 )
4343
4444 // both work
45- const { hits } : { hits : Hits < Movie , typeof searchParams > } = res
46- // const { hits } : { hits: Hits<Movie, SearchParams<Movie>> } = res;
45+ const { hits } : { hits : Hits < Movie > } = res
4746
4847 hits . map ( ( hit : Hit < Movie > ) => {
4948 console . log ( hit ?. genre )
You can’t perform that action at this time.
0 commit comments