Improve react typings for HTML attributes, fix tests in other libraries

This commit is contained in:
Stéphane Goetz
2017-07-10 22:43:07 +02:00
parent a294aca7d4
commit a24aee6125
9 changed files with 744 additions and 356 deletions

View File

@@ -27,7 +27,7 @@ type InputType =
// Intermediate interface to "redefine" the type of size to string
// size:number => size:any => size:string
interface Intermediate extends React.ChangeTargetHTMLProps<HTMLInputElement> {
interface Intermediate extends React.InputHTMLAttributes<HTMLInputElement> {
size?: any;
}

View File

@@ -1,6 +1,6 @@
import { ColumnProps } from './Col';
interface Intermediate extends React.ChangeTargetHTMLProps<HTMLLabelElement> {
interface Intermediate extends React.LabelHTMLAttributes<HTMLLabelElement> {
size?: any;
}