Yoann Couble
06/13/2023, 8:37 AMclient.multiSearch
in a TypeScript project, and I can't find how to provide types to multisearch so that the search response is typed, as can be done for client.collections<MyDocumentSchema>
Is this currently possible at all?Yoann Couble
06/13/2023, 8:38 AMJason Bosco
06/13/2023, 2:51 PMJason Bosco
06/13/2023, 2:52 PMYoann Couble
06/14/2023, 8:15 AMexport default class MultiSearch<T extends DocumentSchema = {}> {
[...]
}
The class is never instantiated by the user, it is instantiated during client initialization, without types. My suggestion would be to set the generic argument definition in the perform
function
I'll create a PR to suggest a fix, thanks !Yoann Couble
06/14/2023, 11:23 AM