Chore: omit allowCustomValue and allowEmptyValue (#55352)

This commit is contained in:
Tima Gixe authored and GitHub committed 2022-09-19 13:40:58 +03:00
1 parent cd7a464f7e
commit e73a85dfb5
1 file changed
+3 -1
@@ -10,7 +10,9 @@ import { getSegmentStyles } from './styles';
import { useExpandableLabel, SegmentProps } from '.';
export interface SegmentInputProps<T> extends SegmentProps<T>, Omit<HTMLProps<HTMLInputElement>, 'value' | 'onChange'> {
export interface SegmentInputProps<T>
extends Omit<SegmentProps<T>, 'allowCustomValue' | 'allowEmptyValue'>,
Omit<HTMLProps<HTMLInputElement>, 'value' | 'onChange'> {
value: string | number;
onChange: (text: string | number) => void;
}