-
Notifications
You must be signed in to change notification settings - Fork 516
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
fix(types): improve UiState types #3763
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,45 @@ interface DisposeOptions { | |
} | ||
|
||
export type UiState = { | ||
[stateKey: string]: any; | ||
query?: string; | ||
menu?: { | ||
samouss marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[attribute: string]: string; | ||
}; | ||
/** | ||
* The list of hierarchical menus. | ||
* Nested levels must contain the record separator. | ||
* | ||
* @example ['Audio', 'Audio > Headphones'] | ||
*/ | ||
hierarchicalMenu?: { | ||
[attribute: string]: string[]; | ||
}; | ||
refinementList?: { | ||
[attribute: string]: string[]; | ||
}; | ||
numericRefinementList?: { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't have a |
||
[attribute: string]: number; | ||
}; | ||
numericSelector?: { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't have a |
||
[attribute: string]: number; | ||
}; | ||
/** | ||
* The range as a tuple. | ||
* | ||
* @example '100:500' | ||
*/ | ||
range?: { | ||
[attribute: string]: string; | ||
}; | ||
starRating?: { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The name is |
||
[attribute: string]: number; | ||
}; | ||
toggle?: { | ||
[attribute: string]: boolean; | ||
}; | ||
sortBy?: string; | ||
page?: number; | ||
hitsPerPage?: number; | ||
}; | ||
|
||
export interface Widget { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type does not contain:
geoSearch
,numericMenu
.