Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
chore: update proptype
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed May 22, 2019
1 parent 18e4549 commit 6cae753
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ class InstantSearch extends Component<Props, State> {

searchClient: PropTypes.shape({
search: PropTypes.func.isRequired,
searchForFacetValues: PropTypes.func,
addAlgoliaAgent: PropTypes.func,
clearCache: PropTypes.func,
}).isRequired,

createURL: PropTypes.func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export default function createInstantSearch(root) {
static propTypes = {
searchClient: PropTypes.shape({
search: PropTypes.func.isRequired,
searchForFacetValues: PropTypes.func,
addAlgoliaAgent: PropTypes.func,
clearCache: PropTypes.func,
}).isRequired,
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ const createInstantSearchServer = () => {
static propTypes = {
searchClient: PropTypes.shape({
search: PropTypes.func.isRequired,
searchForFacetValues: PropTypes.func,
addAlgoliaAgent: PropTypes.func,
clearCache: PropTypes.func,
}).isRequired,
indexName: PropTypes.string.isRequired,
resultsState: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
Expand Down

0 comments on commit 6cae753

Please sign in to comment.