Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] improve options type #76

Merged
merged 2 commits into from
Apr 8, 2024
Merged

[feature] improve options type #76

merged 2 commits into from
Apr 8, 2024

Conversation

mlbonniec
Copy link
Contributor

@mlbonniec mlbonniec commented Apr 7, 2024

WHY is this change introduced?

SearchOptions type has been updated.

  • searchText and searchItems no longer have default values.
  • The search(Partial<SearchOptions>) parameter is no longer a Partial type

Resolves #73

WHAT does this PR introduce or fix?

Generic type support has been added.

QA Checklist

  • I have updated the README.md and related documentation, if necessary

Dependency-specific Checklist

No dependency has been added

Usage-specific Checklist

  • The hook's API remains consistent and user-friendly
  • Any new features have been documented with clear examples

Release Notes

Note: once this PR is merged, a new release or update might be required for the users.

  • The search function now takes an optional generic type.

src/search.ts Show resolved Hide resolved
@SMAKSS SMAKSS merged commit f2161cd into SMAKSS:master Apr 8, 2024
2 checks passed
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.

search function options shouldn't be a partial type from SearchOptions
2 participants