Skip to content

Commit ab054c7

Browse files
committed
Refactor code-style
1 parent 158adf4 commit ab054c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ function element(node, schema) {
150150

151151
/**
152152
* @param {string} name
153-
* @param {Object.<string, string|boolean|number>} attrs
153+
* @param {Record<string, string|boolean|number>} attrs
154154
*/
155155
function h(name, attrs) {
156-
/** @type {Array.<P5Attribute>} */
156+
/** @type {Array<P5Attribute>} */
157157
const values = []
158158
/** @type {string} */
159159
let key
@@ -218,14 +218,14 @@ function element(node, schema) {
218218
}
219219

220220
/**
221-
* @param {Array.<Child>} children
221+
* @param {Array<Child>} children
222222
* @param {P5Parent} p5
223223
* @param {Schema} schema
224-
* @returns {Array.<P5Child>}
224+
* @returns {Array<P5Child>}
225225
*/
226226
function all(children, p5, schema) {
227227
let index = -1
228-
/** @type {Array.<P5Child>} */
228+
/** @type {Array<P5Child>} */
229229
const result = []
230230

231231
if (children) {

0 commit comments

Comments
 (0)