Skip to content

Commit

Permalink
Add filterable type (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
bidoubiwa authored Jul 6, 2021
1 parent 779cdb5 commit 15cb1d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export type Document<T> = T
*/

export interface Settings {
attributesForFaceting?: string[]
filterableAttributes?: string[]
distinctAttribute?: string
searchableAttributes?: string[]
displayedAttributes?: string[]
Expand Down Expand Up @@ -326,11 +326,11 @@ export interface IndexInterface<T = any> {
distinctAttribute: string | null
) => Promise<EnqueuedUpdate>
resetDistinctAttribute: () => Promise<EnqueuedUpdate>
getFilterableAttributes: () => Promise<string[]>
updateFilterableAttributes: (
getAttributesForFaceting: () => Promise<string[]>
updateAttributesForFaceting: (
filterableAttributes: string[] | null
) => Promise<EnqueuedUpdate>
resetFilterableAttributes: () => Promise<EnqueuedUpdate>
resetAttributesForFaceting: () => Promise<EnqueuedUpdate>
getSearchableAttributes: () => Promise<string[]>
updateSearchableAttributes: (
searchableAttributes: string[] | null
Expand Down

0 comments on commit 15cb1d5

Please sign in to comment.