Commit 59507c81 authored by Antonin Décimo's avatar Antonin Décimo Committed by Juliusz Chroboczek

Make type of array of objects compatible with JSDoc and TSDoc.

The best TSDoc type is (Text|HTMLElement)[], but to JSDoc the array is
not distributive. JSDoc prefers Text[]|HTMLElement[], but TSDoc
rejects that syntax. In the end, both are fine with
Array.<Text|HTMLElement>.
parent 22f9442c
......@@ -1446,7 +1446,7 @@ const urlRegexp = /https?:\/\/[-a-zA-Z0-9@:%/._\\+~#&()=?]+[-a-zA-Z0-9@:%/_\\+~#
/**
* @param {string} line
* @returns {(Text|HTMLElement)[]}
* @returns {Array.<Text|HTMLElement>}
*/
function formatLine(line) {
let r = new RegExp(urlRegexp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment