Chore: omit allowCustomValue and allowEmptyValue (#55352)

This commit is contained in:
Tima Gixe 2022-09-19 13:40:58 +03:00 committed by GitHub
parent cd7a464f7e
commit e73a85dfb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,9 @@ import { getSegmentStyles } from './styles';
import { useExpandableLabel, SegmentProps } from '.'; 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; value: string | number;
onChange: (text: string | number) => void; onChange: (text: string | number) => void;
} }