File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
react-aria-components/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ interface SearchResultsMenuProps {
30
30
searchRef : React . RefObject < TextFieldRef < HTMLInputElement > | null > ,
31
31
showCards : boolean ,
32
32
renderCardList : ( ) => React . ReactNode ,
33
- filter ?: AutocompleteProps < any > [ 'filter' ] ,
33
+ filter ?: AutocompleteProps < ComponentItem | ComponentSection > [ 'filter' ] ,
34
34
noResultsText ?: ( value : string ) => string ,
35
35
closeSearchMenu : ( ) => void ,
36
36
isPrimary ?: boolean
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export const UNSTABLE_InternalAutocompleteContext = createContext<InternalAutoco
37
37
/**
38
38
* An autocomplete combines a TextField or SearchField with a Menu or ListBox, allowing users to search or filter a list of suggestions.
39
39
*/
40
- export function Autocomplete < T > ( props : AutocompleteProps < T > ) : JSX . Element {
40
+ export function Autocomplete < T extends object > ( props : AutocompleteProps < T > ) : JSX . Element {
41
41
let ctx = useSlottedContext ( AutocompleteContext , props . slot ) ;
42
42
props = mergeProps ( ctx , props ) ;
43
43
let { filter, disableAutoFocusFirst} = props ;
You can’t perform that action at this time.
0 commit comments