From 495ffc9e4b6a91ea590018b7c701e4de932dd865 Mon Sep 17 00:00:00 2001 From: Goriany Igor Date: Fri, 2 Aug 2024 12:17:55 +0300 Subject: [PATCH] refactor: remove unused type --- src/harmony/Select/Select.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/harmony/Select/Select.tsx b/src/harmony/Select/Select.tsx index ab646a04..31f77a4c 100644 --- a/src/harmony/Select/Select.tsx +++ b/src/harmony/Select/Select.tsx @@ -152,15 +152,6 @@ interface SelectPanelProps extends Omit, 'o title?: string; } -/** - * The definition SelectGuardedProps defines a type that includes `onChange` & `mode` props. - * If the mode property is `single`, the onChange method should accept a single value of type T. - * If the mode property is `multiple`, the onChange method should accept an array of values of type T. - */ -export type SelectGuardedProps = - | { mode: 'single'; onChange?: (value: T) => void } - | { mode: 'multiple'; onChange?: (value: T[]) => void }; - export const SelectPanel = ({ placement = 'top-start', title, children, iconLeft, ...rest }: SelectPanelProps) => { const { open, onClose, items = [], value, onChange, mode, selectable, renderItem } = useContext(SelectContext);