[React] Update HTMLAttributes interface

removes `scrollLeft`, `scrollTop` (0.12.0)
adds `formAction`, `formEncType`, `formMethod`, `formTarget`, `marginHeight`, `marginWidth` (0.12.2)
adds `scoped`, `high`, `low`, `optimum`, `unselectable` (0.13.2)
This commit is contained in:
Vincent Siao
2015-05-28 15:30:16 -07:00
parent bb793321c6
commit 1cc5ea01d8
3 changed files with 36 additions and 6 deletions

View File

@@ -435,10 +435,16 @@ declare module "react/addons" {
draggable?: boolean;
encType?: string;
form?: string;
formAction?: string;
formEncType?: string;
formMethod?: string;
formNoValidate?: boolean;
formTarget?: string;
frameBorder?: number | string;
headers?: string;
height?: number | string;
hidden?: boolean;
high?: number;
href?: string;
hrefLang?: string;
htmlFor?: string;
@@ -449,7 +455,10 @@ declare module "react/addons" {
lang?: string;
list?: string;
loop?: boolean;
low?: number;
manifest?: string;
marginHeight?: number;
marginWidth?: number;
max?: number | string;
maxLength?: number;
media?: string;
@@ -461,6 +470,7 @@ declare module "react/addons" {
name?: string;
noValidate?: boolean;
open?: boolean;
optimum?: number;
pattern?: string;
placeholder?: string;
poster?: string;
@@ -474,9 +484,8 @@ declare module "react/addons" {
rowSpan?: number;
sandbox?: string;
scope?: string;
scrollLeft?: number;
scoped?: boolean;
scrolling?: string;
scrollTop?: number;
seamless?: boolean;
selected?: boolean;
shape?: string;
@@ -506,6 +515,7 @@ declare module "react/addons" {
itemProp?: string;
itemScope?: boolean;
itemType?: string;
unselectable?: boolean;
}
interface SVGAttributes extends DOMAttributes {

View File

@@ -435,10 +435,16 @@ declare module React {
draggable?: boolean;
encType?: string;
form?: string;
formAction?: string;
formEncType?: string;
formMethod?: string;
formNoValidate?: boolean;
formTarget?: string;
frameBorder?: number | string;
headers?: string;
height?: number | string;
hidden?: boolean;
high?: number;
href?: string;
hrefLang?: string;
htmlFor?: string;
@@ -449,7 +455,10 @@ declare module React {
lang?: string;
list?: string;
loop?: boolean;
low?: number;
manifest?: string;
marginHeight?: number;
marginWidth?: number;
max?: number | string;
maxLength?: number;
media?: string;
@@ -461,6 +470,7 @@ declare module React {
name?: string;
noValidate?: boolean;
open?: boolean;
optimum?: number;
pattern?: string;
placeholder?: string;
poster?: string;
@@ -474,9 +484,8 @@ declare module React {
rowSpan?: number;
sandbox?: string;
scope?: string;
scrollLeft?: number;
scoped?: boolean;
scrolling?: string;
scrollTop?: number;
seamless?: boolean;
selected?: boolean;
shape?: string;
@@ -506,6 +515,7 @@ declare module React {
itemProp?: string;
itemScope?: boolean;
itemType?: string;
unselectable?: boolean;
}
interface SVGAttributes extends DOMAttributes {

14
react/react.d.ts vendored
View File

@@ -435,10 +435,16 @@ declare module "react" {
draggable?: boolean;
encType?: string;
form?: string;
formAction?: string;
formEncType?: string;
formMethod?: string;
formNoValidate?: boolean;
formTarget?: string;
frameBorder?: number | string;
headers?: string;
height?: number | string;
hidden?: boolean;
high?: number;
href?: string;
hrefLang?: string;
htmlFor?: string;
@@ -449,7 +455,10 @@ declare module "react" {
lang?: string;
list?: string;
loop?: boolean;
low?: number;
manifest?: string;
marginHeight?: number;
marginWidth?: number;
max?: number | string;
maxLength?: number;
media?: string;
@@ -461,6 +470,7 @@ declare module "react" {
name?: string;
noValidate?: boolean;
open?: boolean;
optimum?: number;
pattern?: string;
placeholder?: string;
poster?: string;
@@ -474,9 +484,8 @@ declare module "react" {
rowSpan?: number;
sandbox?: string;
scope?: string;
scrollLeft?: number;
scoped?: boolean;
scrolling?: string;
scrollTop?: number;
seamless?: boolean;
selected?: boolean;
shape?: string;
@@ -506,6 +515,7 @@ declare module "react" {
itemProp?: string;
itemScope?: boolean;
itemType?: string;
unselectable?: boolean;
}
interface SVGAttributes extends DOMAttributes {