Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
fix(react): fix options types
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Feb 17, 2020
1 parent 524ef05 commit fdde35f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/autocomplete-react/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand All @@ -26,8 +30,8 @@ interface RendererProps extends Required<PublicRendererProps> {
}

interface PublicProps<TItem>
extends AutocompleteOptions<TItem>,
RendererProps {}
extends PublicAutocompleteOptions<TItem>,
PublicRendererProps {}

export function getDefaultRendererProps(
rendererProps: PublicRendererProps,
Expand Down

0 comments on commit fdde35f

Please sign in to comment.