instantsearch.js 4.49.4 → 4.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5052,7 +5052,7 @@ declare type Status = 'initial' | 'askingPermission' | 'waiting' | 'recognizing'
5052
5052
 
5053
5053
  declare type Template<TTemplateData = void> = string | ((data: TTemplateData, params: TemplateParams) => VNode | VNode[] | string);
5054
5054
 
5055
- declare type TemplateParams = BindEventForHits & {
5055
+ declare type TemplateParams = {
5056
5056
  html: typeof html;
5057
5057
  components: {
5058
5058
  Highlight: typeof Highlight;
@@ -5067,7 +5067,15 @@ declare type Templates = {
5067
5067
  [key: string]: Template<any> | TemplateWithBindEvent<any> | undefined;
5068
5068
  };
5069
5069
 
5070
- declare type TemplateWithBindEvent<TTemplateData = void> = string | ((data: TTemplateData, params: TemplateParams) => VNode | VNode[] | string);
5070
+ declare type TemplateWithBindEvent<TTemplateData = void> = string | ((data: TTemplateData, params: TemplateWithBindEventParams) => VNode | VNode[] | string);
5071
+
5072
+ declare interface TemplateWithBindEventParams extends TemplateParams {
5073
+ /** @deprecated use sendEvent instead */
5074
+ (...args: Parameters<BuiltInBindEventForHits>): ReturnType<BuiltInBindEventForHits>;
5075
+ /** @deprecated use sendEvent instead */
5076
+ (...args: Parameters<CustomBindEventForHits>): ReturnType<CustomBindEventForHits>;
5077
+ sendEvent: SendEventForHits;
5078
+ }
5071
5079
 
5072
5080
  declare type TextTemplateProps = {
5073
5081
  hasManyResults: boolean;
@@ -5052,7 +5052,7 @@ declare type Status = 'initial' | 'askingPermission' | 'waiting' | 'recognizing'
5052
5052
 
5053
5053
  declare type Template<TTemplateData = void> = string | ((data: TTemplateData, params: TemplateParams) => VNode | VNode[] | string);
5054
5054
 
5055
- declare type TemplateParams = BindEventForHits & {
5055
+ declare type TemplateParams = {
5056
5056
  html: typeof html;
5057
5057
  components: {
5058
5058
  Highlight: typeof Highlight;
@@ -5067,7 +5067,15 @@ declare type Templates = {
5067
5067
  [key: string]: Template<any> | TemplateWithBindEvent<any> | undefined;
5068
5068
  };
5069
5069
 
5070
- declare type TemplateWithBindEvent<TTemplateData = void> = string | ((data: TTemplateData, params: TemplateParams) => VNode | VNode[] | string);
5070
+ declare type TemplateWithBindEvent<TTemplateData = void> = string | ((data: TTemplateData, params: TemplateWithBindEventParams) => VNode | VNode[] | string);
5071
+
5072
+ declare interface TemplateWithBindEventParams extends TemplateParams {
5073
+ /** @deprecated use sendEvent instead */
5074
+ (...args: Parameters<BuiltInBindEventForHits>): ReturnType<BuiltInBindEventForHits>;
5075
+ /** @deprecated use sendEvent instead */
5076
+ (...args: Parameters<CustomBindEventForHits>): ReturnType<CustomBindEventForHits>;
5077
+ sendEvent: SendEventForHits;
5078
+ }
5071
5079
 
5072
5080
  declare type TextTemplateProps = {
5073
5081
  hasManyResults: boolean;