Slackbot
09/10/2023, 6:38 PMJason Bosco
09/11/2023, 4:06 PMDavid Jones
09/12/2023, 1:05 AMSearchResponse out of Documents.d.ts but these types aren't included in the exports of Typesense.d.ts which is the only types definition provided in package.jsonDavid Jones
09/12/2023, 1:21 AMdocuments().search() be correctly typed with my document interfaceDavid Jones
09/12/2023, 1:22 AMexport type SearchResponse = Awaited<ReturnType<SearchController['search']>> which is returning SearchResult<object>Jason Bosco
09/12/2023, 1:44 AMimport { SearchResponse } from "typesense/src/Typesense/Documents"David Jones
09/12/2023, 1:47 AMJason Bosco
09/12/2023, 1:57 AMsrc, the response should be automatically typed btw...Jason Bosco
09/12/2023, 1:57 AMDavid Jones
09/12/2023, 1:59 AMDavid Jones
09/12/2023, 2:00 AMreturn await ....documents().search(searchParams) as SearchResponse<DocSchema>