Skip to content

feat(types): improve search parameter types and add infix support#248

Open
tharropoulos wants to merge 1 commit intotypesense:masterfrom
tharropoulos:fix-types
Open

feat(types): improve search parameter types and add infix support#248
tharropoulos wants to merge 1 commit intotypesense:masterfrom
tharropoulos:fix-types

Conversation

@tharropoulos
Copy link
Collaborator

Change Summary

  • Add SearchParamsWithoutArray utility type to exclude array types from specific parameters
  • Update BaseSearchParameters interface to use the new utility type for better type safety
  • Add infix parameter support with OperationMode or string type
  • Make BaseSearchParameters generic with default DocumentSchema type
  • Import SearchParams type from typesense documents

PR Checklist

- Add `SearchParamsWithoutArray` utility type to exclude array types from specific parameters
- Update `BaseSearchParameters` interface to use the new utility type for better type safety
- Add `infix` parameter support with `OperationMode` or string type
- Make `BaseSearchParameters` generic with default `DocumentSchema` type
- Import `SearchParams` type from typesense documents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant