Skip to content

Commit 84a5d5d

Browse files
committed
tighten up the types I pick from react-aria for autocomplete
1 parent ce05299 commit 84a5d5d

File tree

1 file changed

+4
-4
lines changed
  • packages/flourish-ui/src/components/Autocomplete

1 file changed

+4
-4
lines changed

packages/flourish-ui/src/components/Autocomplete/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ import { Testable } from '../../common-props'
1212
import './Autocomplete.scss'
1313

1414
export interface AutocompleteProps<T extends object>
15-
extends ComboBoxProps<T>,
15+
extends Pick<ComboBoxProps<T>, 'children' | 'onSelectionChange'>,
1616
Testable {
1717
/** Accessible label for the component */
1818
label: string
1919
}
2020

21-
export interface AutocompleteItemProps extends ListBoxItemProps, Testable {
22-
23-
}
21+
export interface AutocompleteItemProps
22+
extends Pick<ListBoxItemProps, 'children' | 'id'>,
23+
Testable {}
2424

2525
export const AutocompleteItem = ({
2626
'data-testId': testId,

0 commit comments

Comments
 (0)