Skip to content

Commit c924043

Browse files
author
Alexandre Stanislawski
committed
feat(connector): jsDoc updates
1 parent 961348a commit c924043

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

src/connectors/hits/connectHits.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ Full documentation available at https://community.algolia.com/instantsearch.js/c
2323

2424
/**
2525
* @typedef HitsRenderingOptions
26-
* @property {Object[]} hits
27-
* @property {Object} results
28-
* @property {InstantSearch} instantSearchInstance
26+
* @property {Object[]} hits the hits contained in the last results from Algolia
27+
* @property {Object} results the complete results from Algolia
28+
* @property {InstantSearch} instantSearchInstance the instance of instantsearch on which the widget is attached
2929
* @property {Object} widgetParams all original options forwarded to rendering
3030
*/
3131

3232
/**
3333
* Connects a rendering function with the hits business logic.
34-
* @param {function(HitsRenderingOptions)} renderFn function that renders the hits widget
34+
* @param {function(HitsRenderingOptions, boolean)} renderFn function that renders the hits widget
3535
* @return {function(CustomHitsWidgetOptions)} a widget factory for hits widget
3636
*/
3737
export default function connectHits(renderFn) {

src/connectors/infinite-hits/connectInfiniteHits.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@ Full documentation available at https://community.algolia.com/instantsearch.js/c
2525

2626
/**
2727
* @typedef {Object} InfiniteHitsRenderingOptions
28-
* @property {Array} hits
29-
* @property {Object} results
30-
* @property {function} showMore
31-
* @property {boolean} isLastPage
32-
* @property {InstantSearch} instantSearchInstance
28+
* @property {Array} hits the aggregated hits of all the pages
29+
* @property {Object} results the last results
30+
* @property {function} showMore adds a new page and search
31+
* @property {boolean} isLastPage true if the last page has been reached
32+
* @property {InstantSearch} instantSearchInstance the instance of instantsearch on which the widget is attached
33+
* @property {Object} widgetParams all original options forwarded to rendering
3334
*/
3435

3536
/**
3637
* Connects a rendering function with the infinite hits business logic.
37-
* @param {function(InfiniteHitsRenderingOptions)} renderFn function that renders the infinite hits widget
38+
* @param {function(InfiniteHitsRenderingOptions, boolean)} renderFn function that renders the infinite hits widget
3839
* @return {function(CustomInfiniteHitsWidgetOptions)} a widget factory for infinite hits widget
3940
*/
4041
export default function connectInfiniteHits(renderFn) {

src/connectors/menu/connectMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Full documentation available at https://community.algolia.com/instantsearch.js/c
4242

4343
/**
4444
* Connects a rendering function with the menu business logic.
45-
* @param {function(MenuRenderingOptions)} renderFn function that renders the menu widget
45+
* @param {function(MenuRenderingOptions, boolean)} renderFn function that renders the menu widget
4646
* @return {function(CustomMenuWidgetOptions)} a widget factory for menu widget
4747
*/
4848
export default function connectMenu(renderFn) {

src/connectors/range-slider/connectRangeSlider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Full documentation available at https://community.algolia.com/instantsearch.js/c
4141

4242
/**
4343
* Connects a rendering function with the range slider business logic.
44-
* @param {function(RangeSliderRenderingOptions)} renderFn function that renders the range slider widget
44+
* @param {function(RangeSliderRenderingOptions, boolean)} renderFn function that renders the range slider widget
4545
* @return {function(CustomRangeSliderWidgetOptions)} a widget factory for range slider widget
4646
*/
4747
export default function connectRangeSlider(renderFn) {

0 commit comments

Comments
 (0)