8
8
* @typedef {{[attribute: string]: XValue} } XAttributes Attributes to support JS primitive types
9
9
*
10
10
* @typedef {string|number|null|undefined } XPrimitiveChild
11
- * @typedef {Array. <Node|XPrimitiveChild> } XArrayChild
11
+ * @typedef {Array<Node|XPrimitiveChild> } XArrayChild
12
12
* @typedef {Node|XPrimitiveChild|XArrayChild } XChild
13
13
* @typedef {import('./jsx-classic').Element } x.JSX.Element
14
14
* @typedef {import('./jsx-classic').IntrinsicAttributes } x.JSX.IntrinsicAttributes
@@ -27,9 +27,9 @@ export const x =
27
27
/**
28
28
* @type {{
29
29
* (): Root
30
- * (name: null|undefined, ...children: XChild[] ): Root
31
- * (name: string, attributes: XAttributes, ...children: XChild[] ): Element
32
- * (name: string, ...children: XChild[] ): Element
30
+ * (name: null|undefined, ...children: Array< XChild> ): Root
31
+ * (name: string, attributes: XAttributes, ...children: Array< XChild> ): Element
32
+ * (name: string, ...children: Array< XChild> ): Element
33
33
* }}
34
34
*/
35
35
(
@@ -38,7 +38,7 @@ export const x =
38
38
*
39
39
* @param {string|null } [name]
40
40
* @param {XAttributes|XChild } [attributes]
41
- * @param {XChild[] } children
41
+ * @param {Array< XChild> } children
42
42
* @returns {XResult }
43
43
*/
44
44
function ( name , attributes , ...children ) {
@@ -86,7 +86,7 @@ export const x =
86
86
)
87
87
88
88
/**
89
- * @param {Array. <Child> } nodes
89
+ * @param {Array<Child> } nodes
90
90
* @param {XChild } value
91
91
*/
92
92
function addChild ( nodes , value ) {
0 commit comments