We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f2aa58 commit 118b36fCopy full SHA for 118b36f
src/index.ts
@@ -72,7 +72,7 @@ class Index extends MeiliAxiosWrapper implements Types.IndexInterface {
72
* @memberof Index
73
* @method search
74
*/
75
- async search<T>(
+ async search<T = any>(
76
query: string,
77
options?: Types.SearchParams
78
): Promise<Types.SearchResponse<T>> {
src/types.ts
@@ -233,7 +233,7 @@ export interface IndexInterface extends MeiliAxiosWrapperInterface {
233
uid: string
234
getUpdateStatus: (updateId: number) => Promise<Update>
235
getAllUpdateStatus: () => Promise<Update[]>
236
- search: <T>(
+ search: <T = any>(
237
238
options?: SearchParams
239
) => Promise<SearchResponse<T>>
0 commit comments