88 * @typedef {{[attribute: string]: XValue} } XAttributes Attributes to support JS primitive types
99 *
1010 * @typedef {string|number|null|undefined } XPrimitiveChild
11- * @typedef {Array. <Node|XPrimitiveChild> } XArrayChild
11+ * @typedef {Array<Node|XPrimitiveChild> } XArrayChild
1212 * @typedef {Node|XPrimitiveChild|XArrayChild } XChild
1313 * @typedef {import('./jsx-classic').Element } x.JSX.Element
1414 * @typedef {import('./jsx-classic').IntrinsicAttributes } x.JSX.IntrinsicAttributes
@@ -27,9 +27,9 @@ export const x =
2727 /**
2828 * @type {{
2929 * (): 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
3333 * }}
3434 */
3535 (
@@ -38,7 +38,7 @@ export const x =
3838 *
3939 * @param {string|null } [name]
4040 * @param {XAttributes|XChild } [attributes]
41- * @param {XChild[] } children
41+ * @param {Array< XChild> } children
4242 * @returns {XResult }
4343 */
4444 function ( name , attributes , ...children ) {
@@ -86,7 +86,7 @@ export const x =
8686 )
8787
8888/**
89- * @param {Array. <Child> } nodes
89+ * @param {Array<Child> } nodes
9090 * @param {XChild } value
9191 */
9292function addChild ( nodes , value ) {
0 commit comments