mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
[React.14] Fix jsnox types and reference path in react-global-0.13.3
This commit is contained in:
@@ -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')
|
||||
|
||||
Vendored
+2
-2
@@ -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>
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Vendored
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user