Skip to content

Commit 84c2294

Browse files
committed
fix(curation): make retrieve function def lsp definition simpler
1 parent c96b443 commit 84c2294

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/Typesense/CurationSets.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ export interface CurationSetsListEntrySchema {
4242
items: CurationObjectSchema[];
4343
}
4444

45-
export type CurationSetsListResponseSchema = CurationSetsListEntrySchema[];
46-
4745
export interface CurationSetDeleteResponseSchema {
4846
name: string;
4947
}
@@ -52,8 +50,8 @@ export default class CurationSets {
5250
constructor(private apiCall: ApiCall) {}
5351
static readonly RESOURCEPATH = "/curation_sets";
5452

55-
async retrieve(): Promise<CurationSetsListResponseSchema> {
56-
return this.apiCall.get<CurationSetsListResponseSchema>(
53+
async retrieve(): Promise<CurationSetsListEntrySchema[]> {
54+
return this.apiCall.get<CurationSetsListEntrySchema[]>(
5755
CurationSets.RESOURCEPATH,
5856
);
5957
}

0 commit comments

Comments
 (0)