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 c69d9ac commit 8b8cefaCopy full SHA for 8b8cefa
src/indexes.ts
@@ -44,7 +44,7 @@ import { HttpRequests } from './http-requests'
44
import { Task, TaskClient } from './task'
45
import { EnqueuedTask } from './enqueued-task'
46
47
-class Index<T = Record<string, any>> {
+class Index<T extends Record<string, any> = Record<string, any>> {
48
uid: string
49
primaryKey: string | undefined
50
createdAt: Date | undefined
@@ -130,7 +130,7 @@ class Index<T = Record<string, any>> {
130
attributesToHighlight: options?.attributesToHighlight?.join(','),
131
}
132
133
- return await this.httpRequest.get<SearchResponse<T>>(
+ return await this.httpRequest.get<SearchResponse<D>>(
134
url,
135
removeUndefinedFromObject(getParams),
136
config
0 commit comments