Skip to content

Commit bd129d9

Browse files
authored
docs: Update function documentation
1 parent 90133ea commit bd129d9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

bin/build-icons-object.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { minify } from 'html-minifier';
44

55
/**
66
* Build an object in the format: `{ <name>: <contents> }`.
7-
* @param {string[]} svgFiles - A list of file names.
8-
* @param {Function} getSvg - A function that returns the contents of an SVG file.
7+
* @param {string[]} svgFiles - A list of filenames.
8+
* @param {Function} getSvg - A function that returns the contents of an SVG file given a filename.
99
* @returns {Object}
1010
*/
1111
function buildIconsObject(svgFiles, getSvg) {
@@ -25,6 +25,7 @@ function buildIconsObject(svgFiles, getSvg) {
2525
/**
2626
* Get contents between opening and closing `<svg>` tags.
2727
* @param {string} svg
28+
* @returns {string}
2829
*/
2930
function getSvgContents(svg) {
3031
const $ = cheerio.load(svg);

0 commit comments

Comments
 (0)