1
- // Type definitions for JSnoX
1
+ // Type definitions for JSnoX
2
2
// Project: https://github.com/af/jsnox
3
3
// Definitions by: Steve Baker <https://github.com/stkb/>
4
4
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5
5
6
- /// <reference path="../react/legacy/ react-0.12 .d.ts" />
6
+ /// <reference path="../react/react.d.ts" />
7
7
8
8
declare module 'jsnox' {
9
9
10
+ import React = require( "react" ) ;
11
+
10
12
/*
11
13
* JSnoX requires an object with a createElement method.
12
14
* This will normally be the React object but could be something else
@@ -29,7 +31,7 @@ declare module 'jsnox' {
29
31
* @param children A single React node (string or ReactElement) or array of nodes.
30
32
* Note that unlike with React itself, multiple children must be placed into an array.
31
33
*/
32
- ( specString : string , children : React . ReactNode ) : React . ReactHTMLElement
34
+ ( specString : string , children : React . ReactNode ) : React . HTMLComponent
33
35
34
36
/**
35
37
* Renders an HTML element from the given spec string, with optional props
@@ -40,7 +42,7 @@ declare module 'jsnox' {
40
42
* @param children A single React node (string or ReactElement) or array of nodes.
41
43
* Note that unlike with React itself, multiple children must be placed into an array.
42
44
*/
43
- ( specString : string , props ?: React . HTMLAttributes , children ?: React . ReactNode ) : React . ReactHTMLElement
45
+ ( specString : string , props ?: React . HTMLAttributes , children ?: React . ReactNode ) : React . HTMLComponent
44
46
45
47
46
48
/**
0 commit comments