33 * @typedef {import('unist').Position } Position
44 * @typedef {import('unist').Point } Point
55 *
6- * @typedef { Object } InspectOptions
6+ * @typedef Options
77 * @property {boolean } [showPositions=true]
8+ *
9+ * @typedef {Options } InspectOptions
10+ * Deprecated, use `Options`.
811 */
912
1013import { color } from './color.js'
@@ -79,11 +82,11 @@ export function inspectColor(tree, options = {}) {
7982 }
8083
8184 /**
82- * @param {Node[] } nodes
85+ * @param {Array< Node> } nodes
8386 * @returns {string }
8487 */
8588 function inspectNodes ( nodes ) {
86- /** @type {Array. <string> } */
89+ /** @type {Array<string> } */
8790 const result = [ ]
8891 let index = - 1
8992
@@ -103,12 +106,12 @@ export function inspectColor(tree, options = {}) {
103106 }
104107
105108 /**
106- * @param {Object. <string, unknown> } object
109+ * @param {Record <string, unknown> } object
107110 * @returns {string }
108111 */
109112 // eslint-disable-next-line complexity
110113 function inspectFields ( object ) {
111- /** @type {Array. <string> } */
114+ /** @type {Array<string> } */
112115 const result = [ ]
113116 /** @type {string } */
114117 let key
@@ -253,11 +256,11 @@ function stringifyPosition(value) {
253256 /** @type {Position } */
254257 // @ts -expect-error: fine.
255258 const position = value || { }
256- /** @type {Array. <string> } */
259+ /** @type {Array<string> } */
257260 const result = [ ]
258- /** @type {Array. <string> } */
261+ /** @type {Array<string> } */
259262 const positions = [ ]
260- /** @type {Array. <string> } */
263+ /** @type {Array<string> } */
261264 const offsets = [ ]
262265
263266 point ( position . start )
0 commit comments