@algolia/satellite 2.2.0 → 2.2.2
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.
@@ -172,9 +172,10 @@ export interface AutoCompleteSingleProps<T extends Option = Option> extends Auto
|
|
172
172
|
/**
|
173
173
|
* The callback function that is called when the value of the `AutoComplete` changes.
|
174
174
|
*/
|
175
|
-
onChange: (option: T | null, changeType
|
175
|
+
onChange: (option: T | null, changeType?: AutoCompleteChangeTypesValue) => void;
|
176
176
|
}
|
177
|
-
|
177
|
+
declare type UseMultipleSelectionStateChangeTypesKey = keyof typeof UseMultipleSelectionStateChangeTypes;
|
178
|
+
export declare type AutoCompleteChangeTypesValue = (typeof UseMultipleSelectionStateChangeTypes)[UseMultipleSelectionStateChangeTypesKey];
|
178
179
|
export interface AutoCompleteMultiProps<T extends Option = Option> extends AutoCompleteBaseProps<T> {
|
179
180
|
/**
|
180
181
|
* Whether the `AutoComplete` is a multiple selection.
|
@@ -187,7 +188,7 @@ export interface AutoCompleteMultiProps<T extends Option = Option> extends AutoC
|
|
187
188
|
/**
|
188
189
|
* The callback function that is called when the value of the `AutoComplete` changes.
|
189
190
|
*/
|
190
|
-
onChange: (option: T[] | null, changeType
|
191
|
+
onChange: (option: T[] | null, changeType?: AutoCompleteChangeTypesValue) => void;
|
191
192
|
}
|
192
193
|
export declare type AutoCompleteProps<T extends Option = Option> = AutoCompleteMultiProps<T> | AutoCompleteSingleProps<T>;
|
193
194
|
declare type OptionsValue = string | number | boolean;
|
@@ -172,9 +172,10 @@ export interface AutoCompleteSingleProps<T extends Option = Option> extends Auto
|
|
172
172
|
/**
|
173
173
|
* The callback function that is called when the value of the `AutoComplete` changes.
|
174
174
|
*/
|
175
|
-
onChange: (option: T | null, changeType
|
175
|
+
onChange: (option: T | null, changeType?: AutoCompleteChangeTypesValue) => void;
|
176
176
|
}
|
177
|
-
|
177
|
+
declare type UseMultipleSelectionStateChangeTypesKey = keyof typeof UseMultipleSelectionStateChangeTypes;
|
178
|
+
export declare type AutoCompleteChangeTypesValue = (typeof UseMultipleSelectionStateChangeTypes)[UseMultipleSelectionStateChangeTypesKey];
|
178
179
|
export interface AutoCompleteMultiProps<T extends Option = Option> extends AutoCompleteBaseProps<T> {
|
179
180
|
/**
|
180
181
|
* Whether the `AutoComplete` is a multiple selection.
|
@@ -187,7 +188,7 @@ export interface AutoCompleteMultiProps<T extends Option = Option> extends AutoC
|
|
187
188
|
/**
|
188
189
|
* The callback function that is called when the value of the `AutoComplete` changes.
|
189
190
|
*/
|
190
|
-
onChange: (option: T[] | null, changeType
|
191
|
+
onChange: (option: T[] | null, changeType?: AutoCompleteChangeTypesValue) => void;
|
191
192
|
}
|
192
193
|
export declare type AutoCompleteProps<T extends Option = Option> = AutoCompleteMultiProps<T> | AutoCompleteSingleProps<T>;
|
193
194
|
declare type OptionsValue = string | number | boolean;
|