fix: override types

This commit is contained in:
Ofek Ashery
2020-03-29 04:21:02 +03:00
parent 59029494eb
commit 6f125d7589
52 changed files with 104 additions and 53 deletions

View File

@@ -29,7 +29,8 @@ const defaultProps = {
className: '',
}
export type TextareaProps = Props & typeof defaultProps & React.TextareaHTMLAttributes<any>
type NativeAttrs = Omit<React.TextareaHTMLAttributes<any>, keyof Props>
export type TextareaProps = Props & typeof defaultProps & NativeAttrs
const Textarea: React.FC<React.PropsWithChildren<TextareaProps>> = ({
width, status, minHeight, disabled, readOnly, onFocus, onBlur,