Skip to content

Commit c91e314

Browse files
tanyaboumaneps1lon
andauthored
[docs] Fix type signature of renderGroup in Autocomplete (#28876)
Co-authored-by: eps1lon <[email protected]>
1 parent f3a06d6 commit c91e314

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/translations/api-docs/autocomplete/autocomplete.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"PaperComponent": "The component used to render the body of the popup.",
5454
"PopperComponent": "The component used to position the popup.",
5555
"popupIcon": "The icon to display in place of the default popup icon.",
56-
"renderGroup": "Render the group.<br><br><strong>Signature:</strong><br><code>function(option: any) =&gt; ReactNode</code><br><em>option:</em> The group to render.",
56+
"renderGroup": "Render the group.<br><br><strong>Signature:</strong><br><code>function(params: AutocompleteRenderGroupParams) =&gt; ReactNode</code><br><em>params:</em> The group to render.",
5757
"renderInput": "Render the input.<br><br><strong>Signature:</strong><br><code>function(params: object) =&gt; ReactNode</code><br>",
5858
"renderOption": "Render the option, use <code>getOptionLabel</code> by default.<br><br><strong>Signature:</strong><br><code>function(props: object, option: T, state: object) =&gt; ReactNode</code><br><em>props:</em> The props to apply on the li element.<br><em>option:</em> The option to render.<br><em>state:</em> The state of the component.",
5959
"renderTags": "Render the selected value.<br><br><strong>Signature:</strong><br><code>function(value: Array&lt;T&gt;, getTagProps: function) =&gt; ReactNode</code><br><em>value:</em> The <code>value</code> provided to the component.<br><em>getTagProps:</em> A tag props getter.",

packages/mui-material/src/Autocomplete/Autocomplete.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export interface AutocompleteProps<
190190
/**
191191
* Render the group.
192192
*
193-
* @param {any} option The group to render.
193+
* @param {AutocompleteRenderGroupParams} params The group to render.
194194
* @returns {ReactNode}
195195
*/
196196
renderGroup?: (params: AutocompleteRenderGroupParams) => React.ReactNode;

packages/mui-material/src/Autocomplete/Autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ Autocomplete.propTypes /* remove-proptypes */ = {
967967
/**
968968
* Render the group.
969969
*
970-
* @param {any} option The group to render.
970+
* @param {AutocompleteRenderGroupParams} params The group to render.
971971
* @returns {ReactNode}
972972
*/
973973
renderGroup: PropTypes.func,

0 commit comments

Comments
 (0)