diff --git a/packages/autocomplete-react/Autocomplete.tsx b/packages/autocomplete-react/Autocomplete.tsx index 67e9ea3d4..6f088158f 100644 --- a/packages/autocomplete-react/Autocomplete.tsx +++ b/packages/autocomplete-react/Autocomplete.tsx @@ -14,10 +14,14 @@ import { Dropdown } from './Dropdown'; import { AutocompleteState, AutocompleteOptions, + PublicAutocompleteOptions, } from '../autocomplete-core/types/index'; interface PublicRendererProps { dropdownContainer?: string | HTMLElement; + /** + * The dropdown placement related to the container. + */ dropdownPlacement?: 'start' | 'end'; } @@ -26,8 +30,8 @@ interface RendererProps extends Required { } interface PublicProps - extends AutocompleteOptions, - RendererProps {} + extends PublicAutocompleteOptions, + PublicRendererProps {} export function getDefaultRendererProps( rendererProps: PublicRendererProps,