Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Typesense/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,11 @@ export interface UnionSearchResponse<T extends DocumentSchema>
type AllRequiredBut<T, K extends keyof T> = Required<Omit<T, K>> & Pick<T, K>;

export interface UnionSearchResponseRequestParams
extends AllRequiredBut<SearchResponseRequestParams, "voice_query"> {
extends Omit<

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe remove the omit, keep it as an optional prop and add collection as optional as well

AllRequiredBut<SearchResponseRequestParams, "voice_query">,
"collection_name"
> {
collection: string;
found: number;
}

Expand Down
Loading