mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[React.14] Fix jsnox types and reference path in react-global-0.13.3
This commit is contained in:
parent
a43c2843cd
commit
49f853d9dc
@ -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
4
jsnox/jsnox.d.ts
vendored
@ -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>
|
||||
|
||||
|
||||
/**
|
||||
|
||||
2
react/react-global-0.13.3.d.ts
vendored
2
react/react-global-0.13.3.d.ts
vendored
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user