mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
docs: Update function documentation
This commit is contained in:
parent
90133ea33e
commit
bd129d9dcf
@ -5,7 +5,7 @@ import { minify } from 'html-minifier';
|
|||||||
/**
|
/**
|
||||||
* Build an object in the format: `{ <name>: <contents> }`.
|
* Build an object in the format: `{ <name>: <contents> }`.
|
||||||
* @param {string[]} svgFiles - A list of filenames.
|
* @param {string[]} svgFiles - A list of filenames.
|
||||||
* @param {Function} getSvg - A function that returns the contents of an SVG file.
|
* @param {Function} getSvg - A function that returns the contents of an SVG file given a filename.
|
||||||
* @returns {Object}
|
* @returns {Object}
|
||||||
*/
|
*/
|
||||||
function buildIconsObject(svgFiles, getSvg) {
|
function buildIconsObject(svgFiles, getSvg) {
|
||||||
@ -25,6 +25,7 @@ function buildIconsObject(svgFiles, getSvg) {
|
|||||||
/**
|
/**
|
||||||
* Get contents between opening and closing `<svg>` tags.
|
* Get contents between opening and closing `<svg>` tags.
|
||||||
* @param {string} svg
|
* @param {string} svg
|
||||||
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
function getSvgContents(svg) {
|
function getSvgContents(svg) {
|
||||||
const $ = cheerio.load(svg);
|
const $ = cheerio.load(svg);
|
||||||
|
Loading…
Reference in New Issue
Block a user