From 89aba2be0c090665846a44ad8f561e3e2e74f84a Mon Sep 17 00:00:00 2001 From: octod Date: Wed, 1 Nov 2017 13:01:54 +0100 Subject: [PATCH] chore: Adds missing jsdoc --- extensions/commands/theme-icons/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extensions/commands/theme-icons/index.ts b/extensions/commands/theme-icons/index.ts index 6c47205..04bfb43 100644 --- a/extensions/commands/theme-icons/index.ts +++ b/extensions/commands/theme-icons/index.ts @@ -9,6 +9,12 @@ import { CHARSET } from "../../consts/files"; import { IPackageJSONThemeIcons } from "../../interfaces/ipackage.json"; import { IThemeIcons } from "../../interfaces/itheme-icons"; +/** + * Replaces icon path with the accented one. + * @param {string} iconPath + * @param {string} accentName + * @returns {string} + */ function replaceIconPathWithAccent(iconPath: string, accentName: string): string { return iconPath.replace('.svg', `.accent.${ accentName }.svg`); }