diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 7b5e23005c..66be838b76 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -184,6 +184,11 @@ declare namespace React { function createFactory
(type: ComponentClass
): Factory
;
// DOM Elements
+ // TODO: generalize this to everything in `keyof ReactHTML`, not just "input"
+ function createElement(
+ type: "input",
+ props?: InputHTMLAttributes , T extends HTMLElement>(
type: keyof ReactHTML,
props?: ClassAttributes