Skip to content

Commit

Permalink
docs: Update function documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
colebemis committed May 18, 2018
1 parent 90133ea commit bd129d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/build-icons-object.js
Expand Up @@ -4,8 +4,8 @@ import { minify } from 'html-minifier';

/**
* Build an object in the format: `{ <name>: <contents> }`.
* @param {string[]} svgFiles - A list of file names.
* @param {Function} getSvg - A function that returns the contents of an SVG file.
* @param {string[]} svgFiles - A list of filenames.
* @param {Function} getSvg - A function that returns the contents of an SVG file given a filename.
* @returns {Object}
*/
function buildIconsObject(svgFiles, getSvg) {
Expand All @@ -25,6 +25,7 @@ function buildIconsObject(svgFiles, getSvg) {
/**
* Get contents between opening and closing `<svg>` tags.
* @param {string} svg
* @returns {string}
*/
function getSvgContents(svg) {
const $ = cheerio.load(svg);
Expand Down

0 comments on commit bd129d9

Please sign in to comment.