- Linting (ESLint): Avoid unneeded tag name preference

- Linting (jsdoc): Avoid `Promise` without type
This commit is contained in:
Brett Zamir
2019-05-24 10:12:10 +08:00
parent c8e09a8991
commit a7da98ca1b
3 changed files with 2 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ const isNullish = (val) => {
* @param {HTMLCanvasElement|string} target canvas element or the id of a canvas element
* @param {string|XMLDocument} s - svg string, url to svg file, or xml document
* @param {module:canvg.CanvgOptions} [opts] Optional hash of options
* @returns {Promise} All the function after the first render is completed with dom
* @returns {Promise<XMLDocument|XMLDocument[]>} All the function after the first render is completed with dom
*/
export const canvg = function (target, s, opts) {
// no parameters