From d9420c7ffc2fe9efc8c56d67114cbab5e09527b5 Mon Sep 17 00:00:00 2001 From: Mike Deverell Date: Wed, 19 Jul 2017 16:26:08 -0400 Subject: [PATCH 1/3] add missing textarea attributes --- types/react/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 3849e98d7f..e0a047c593 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -2815,8 +2815,10 @@ declare namespace React { } interface TextareaHTMLAttributes extends HTMLAttributes { + autoComplete?: string; autoFocus?: boolean; cols?: number; + dirName?: string; disabled?: boolean; form?: string; maxLength?: number; From 801ffc3751d64f19b33cca2f7e702ca09aef0e71 Mon Sep 17 00:00:00 2001 From: Mike Deverell Date: Wed, 19 Jul 2017 16:34:19 -0400 Subject: [PATCH 2/3] add myself (devrelm) to the contributors list --- types/react/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index e0a047c593..33f70c73d9 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -12,6 +12,7 @@ // Tanguy Krotoff // Dovydas Navickas // Stéphane Goetz +// Mike Deverell // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 From c3f41ac81b330212ab75ab8609c79a050bd6e2cd Mon Sep 17 00:00:00 2001 From: Mike Deverell Date: Thu, 20 Jul 2017 12:43:26 -0400 Subject: [PATCH 3/3] 'autoComplete' should be lowercase 'autocomplete' --- types/react/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 33f70c73d9..b74fe7a1a0 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -2392,7 +2392,7 @@ declare namespace React { allowTransparency?: boolean; alt?: string; async?: boolean; - autoComplete?: string; + autocomplete?: string; autoFocus?: boolean; autoPlay?: boolean; capture?: boolean; @@ -2577,7 +2577,7 @@ declare namespace React { interface FormHTMLAttributes extends HTMLAttributes { acceptCharset?: string; action?: string; - autoComplete?: string; + autocomplete?: string; encType?: string; method?: string; name?: string; @@ -2623,7 +2623,7 @@ declare namespace React { interface InputHTMLAttributes extends HTMLAttributes { accept?: string; alt?: string; - autoComplete?: string; + autocomplete?: string; autoFocus?: boolean; capture?: boolean; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute checked?: boolean; @@ -2816,7 +2816,7 @@ declare namespace React { } interface TextareaHTMLAttributes extends HTMLAttributes { - autoComplete?: string; + autocomplete?: string; autoFocus?: boolean; cols?: number; dirName?: string;