Вы должны определить его как 2 отдельных интерфейса, а затем объединить их:
interface InputProps {
type: 'input'
props: React.InputHTMLAttributes<HTMLInputElement>
}
interface TextAreaProps {
type: 'textarea'
props: React.TextareaHTMLAttributes<HTMLTextAreaElement>
}
type TextFieldProps = InputProps | TextAreaProps;