Skip to content

Commit

Permalink
SearchQueryParams
Browse files Browse the repository at this point in the history
  • Loading branch information
abeglova committed Feb 9, 2024
1 parent ef8020b commit a8c240c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export * from "./constants"

export * from "./url_utils"

export { buildSearchUrl } from "./search"
export { buildSearchUrl, SearchQueryParams } from "./search"

export interface Bucket {
key: string
Expand Down Expand Up @@ -127,7 +127,7 @@ type UseSearchInputsResult = {
/**
* Event handler for updating `searchParams.sort`; also sets text -> searchParams.text.
*/
updateSort: (event: { target: { value: string } }) => void
updateSort: (event: { target: { value: string } } | null) => void
/**
* Updates `searchParams.sort`; also sets text -> searchParams.text.
*/
Expand Down
1 change: 1 addition & 0 deletions src/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface SearchQueryParams {
sort?: string
activeFacets?: Facets
aggregations?: string[]
endpoint?: string
}

export const buildSearchUrl = (
Expand Down

0 comments on commit a8c240c

Please sign in to comment.