From 49f853d9dc71a5647175d7bfd62aa7030e92b39f Mon Sep 17 00:00:00 2001 From: Vincent Siao Date: Thu, 5 Nov 2015 14:56:56 -0800 Subject: [PATCH] [React.14] Fix jsnox types and reference path in react-global-0.13.3 --- jsnox/jsnox-tests.ts | 2 +- jsnox/jsnox.d.ts | 4 ++-- react/react-global-0.13.3.d.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jsnox/jsnox-tests.ts b/jsnox/jsnox-tests.ts index e34d71b4a..33e58720e 100644 --- a/jsnox/jsnox-tests.ts +++ b/jsnox/jsnox-tests.ts @@ -19,7 +19,7 @@ var clickHandler: React.MouseEventHandler // Tests with spec string function spec_string () { - var result: React.HTMLComponent + var result: React.ReactHTMLElement // just spec string result = $('div') diff --git a/jsnox/jsnox.d.ts b/jsnox/jsnox.d.ts index dfb59e280..22291956d 100644 --- a/jsnox/jsnox.d.ts +++ b/jsnox/jsnox.d.ts @@ -31,7 +31,7 @@ declare module 'jsnox' { * @param children A single React node (string or ReactElement) or array of nodes. * Note that unlike with React itself, multiple children must be placed into an array. */ - (specString: string, children: React.ReactNode): React.HTMLComponent +

(specString: string, children: React.ReactNode): React.DOMElement

/** * Renders an HTML element from the given spec string, with optional props @@ -42,7 +42,7 @@ declare module 'jsnox' { * @param children A single React node (string or ReactElement) or array of nodes. * Note that unlike with React itself, multiple children must be placed into an array. */ - (specString: string, props?: React.HTMLAttributes, children?: React.ReactNode): React.HTMLComponent +

(specString: string, props?: React.HTMLAttributes, children?: React.ReactNode): React.DOMElement

/** diff --git a/react/react-global-0.13.3.d.ts b/react/react-global-0.13.3.d.ts index 1728ba2fc..13d114892 100644 --- a/react/react-global-0.13.3.d.ts +++ b/react/react-global-0.13.3.d.ts @@ -3,7 +3,7 @@ // Definitions by: Asana , AssureSign , Microsoft // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// import React = __React;