mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 01:45:49 +08:00
Improve react typings for HTML attributes, fix tests in other libraries
This commit is contained in:
2
types/reactstrap/lib/Input.d.ts
vendored
2
types/reactstrap/lib/Input.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
2
types/reactstrap/lib/Label.d.ts
vendored
2
types/reactstrap/lib/Label.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
import { ColumnProps } from './Col';
|
||||
|
||||
interface Intermediate extends React.ChangeTargetHTMLProps<HTMLLabelElement> {
|
||||
interface Intermediate extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
||||
size?: any;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user