[React.14] Fix jsnox types and reference path in react-global-0.13.3

This commit is contained in:
Vincent Siao 2015-11-05 14:56:56 -08:00
parent a43c2843cd
commit 49f853d9dc
3 changed files with 4 additions and 4 deletions

View File

@ -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')

4
jsnox/jsnox.d.ts vendored
View File

@ -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
<P>(specString: string, children: React.ReactNode): React.DOMElement<P>
/**
* 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
<P>(specString: string, props?: React.HTMLAttributes, children?: React.ReactNode): React.DOMElement<P>
/**

View File

@ -3,7 +3,7 @@
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="react.d.ts" />
/// <reference path="react-0.13.3.d.ts" />
import React = __React;