99 *
1010 * @typedef {Root|Element } HResult
1111 * @typedef {string|number } HStyleValue
12- * @typedef {Object. <string, HStyleValue> } HStyle
12+ * @typedef {Record <string, HStyleValue> } HStyle
1313 * @typedef {string|number|boolean|null|undefined } HPrimitiveValue
14- * @typedef {Array. <string|number> } HArrayValue
14+ * @typedef {Array<string|number> } HArrayValue
1515 * @typedef {HPrimitiveValue|HArrayValue } HPropertyValue
1616 * @typedef {{[property: string]: HPropertyValue|HStyle} } HProperties
1717 *
1818 * @typedef {string|number|null|undefined } HPrimitiveChild
19- * @typedef {Array. <Node|HPrimitiveChild> } HArrayChild
19+ * @typedef {Array<Node|HPrimitiveChild> } HArrayChild
2020 * @typedef {Node|HPrimitiveChild|HArrayChild } HChild
2121 */
2222
@@ -32,7 +32,7 @@ const own = {}.hasOwnProperty
3232/**
3333 * @param {Schema } schema
3434 * @param {string } defaultTagName
35- * @param {Array. <string> } [caseSensitive]
35+ * @param {Array<string> } [caseSensitive]
3636 */
3737export function core ( schema , defaultTagName , caseSensitive ) {
3838 const adjust = caseSensitive && createAdjustMap ( caseSensitive )
@@ -41,9 +41,9 @@ export function core(schema, defaultTagName, caseSensitive) {
4141 /**
4242 * @type {{
4343 * (): Root
44- * (selector: null|undefined, ...children: HChild[] ): Root
45- * (selector: string, properties?: HProperties, ...children: HChild[] ): Element
46- * (selector: string, ...children: HChild[] ): Element
44+ * (selector: null|undefined, ...children: Array< HChild> ): Root
45+ * (selector: string, properties?: HProperties, ...children: Array< HChild> ): Element
46+ * (selector: string, ...children: Array< HChild> ): Element
4747 * }}
4848 */
4949 (
@@ -52,7 +52,7 @@ export function core(schema, defaultTagName, caseSensitive) {
5252 *
5353 * @param {string|null } [selector]
5454 * @param {HProperties|HChild } [properties]
55- * @param {HChild[] } children
55+ * @param {Array< HChild> } children
5656 * @returns {HResult }
5757 */
5858 function ( selector , properties , ...children ) {
@@ -179,7 +179,7 @@ function addProperty(schema, properties, key, value) {
179179 }
180180
181181 if ( Array . isArray ( result ) ) {
182- /** @type {Array. <string|number> } */
182+ /** @type {Array<string|number> } */
183183 const finalResult = [ ]
184184
185185 while ( ++ index < result . length ) {
@@ -200,7 +200,7 @@ function addProperty(schema, properties, key, value) {
200200}
201201
202202/**
203- * @param {Array. <Child> } nodes
203+ * @param {Array<Child> } nodes
204204 * @param {HChild } value
205205 * @returns {void }
206206 */
@@ -256,7 +256,7 @@ function parsePrimitive(info, name, value) {
256256 * @returns {string }
257257 */
258258function style ( value ) {
259- /** @type {Array. <string> } */
259+ /** @type {Array<string> } */
260260 const result = [ ]
261261 /** @type {string } */
262262 let key
@@ -271,11 +271,11 @@ function style(value) {
271271}
272272
273273/**
274- * @param {Array. <string> } values
275- * @returns {Object. <string, string> }
274+ * @param {Array<string> } values
275+ * @returns {Record <string, string> }
276276 */
277277function createAdjustMap ( values ) {
278- /** @type {Object. <string, string> } */
278+ /** @type {Record <string, string> } */
279279 const result = { }
280280 let index = - 1
281281
0 commit comments