1
0
mirror of https://github.com/badges/shields.git synced 2025-04-18 19:44:04 +03:00

Two minor docstring fixes (#7216)

* fix XmlElement ref in docstring

* make sure jsdoc picks up renderDownloadsBadge() docstring
This commit is contained in:
chris48s 2021-11-03 18:49:10 +00:00 committed by GitHub
parent eb07b60cf0
commit 32dd99c540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class XmlElement {
* @param {object} attrs Refer to individual attrs
* @param {string} attrs.name
* Name of the XML tag
* @param {Array.<string|module:badge-maker/lib/xml-element~XmlElement>} [attrs.content=[]]
* @param {Array.<string|module:badge-maker/lib/xml~XmlElement>} [attrs.content=[]]
* Array of objects to render inside the tag. content may contain a mix of
* string and XmlElement objects. If content is `[]` or ommitted the
* element will be rendered as a self-closing element.

View File

@ -1,3 +1,7 @@
/**
* @module
*/
import { downloadCount } from './color-formatters.js'
import { metric } from './text-formatters.js'