diff --git a/lib/index.js b/lib/index.js index 4b7d62e..47d94ae 100644 --- a/lib/index.js +++ b/lib/index.js @@ -42,19 +42,21 @@ export function parseEntities(value, options = {}) { typeof options.additional === 'string' ? options.additional.charCodeAt(0) : options.additional - /** @type {string[]} */ + /** @type {Array} */ const result = [] let index = 0 let lines = -1 let queue = '' /** @type {Point|undefined} */ let point - /** @type {number[]|undefined} */ + /** @type {Array|undefined} */ let indent if (options.position) { if ('start' in options.position || 'indent' in options.position) { + // @ts-expect-error: points don’t have indent. indent = options.position.indent + // @ts-expect-error: points don’t have indent. point = options.position.start } else { point = options.position diff --git a/test.js b/test.js index e6085e8..cde3240 100644 --- a/test.js +++ b/test.js @@ -584,7 +584,7 @@ test('parseEntities(value)', function (t) { function addFactory(type) { return add /** - * @param {unknown[]} things + * @param {Array} things */ function add(...things) { // @ts-ignore