File tree Expand file tree Collapse file tree 4 files changed +13
-12
lines changed
Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Original file line number Diff line number Diff 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 */
3737export default function connectHits ( renderFn ) {
Original file line number Diff line number Diff 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 */
4041export default function connectInfiniteHits ( renderFn ) {
Original file line number Diff line number Diff 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 */
4848export default function connectMenu ( renderFn ) {
Original file line number Diff line number Diff 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 */
4747export default function connectRangeSlider ( renderFn ) {
You can’t perform that action at this time.
0 commit comments