From 3545ba6a48819d47087962c6dc8b279b52d55dc5 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 8 May 2020 09:58:49 +0200 Subject: [PATCH] fix --- lib/Helper.ts | 12 ++++++------ lib/snippets/node/index.ts | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/Helper.ts b/lib/Helper.ts index bc35100..651fb29 100644 --- a/lib/Helper.ts +++ b/lib/Helper.ts @@ -12,8 +12,8 @@ import fs from 'fs-extra'; /** * write a template to a file * - * @param {string} contents file contents - * @param {string} destination file destination + * @param contents - file contents + * @param destination - file destination */ async function apply_template ( contents: string, @@ -34,8 +34,8 @@ type JSONMutator = { /** * modify a json file * - * @param {Function} func function that modifies the object - * @param {string} json_path path of json file + * @param func - function that modifies the object + * @param json_path - path of json file */ async function modify_json ( func: JSONMutator, @@ -50,8 +50,8 @@ async function modify_json ( /** * run a command * - * @param {string} command command to run - * @param {string} folder folder to run in + * @param command - command to run + * @param folder - folder to run in */ function run_command (command: string, folder = ''): void { // eslint-disable-next-line no-sync diff --git a/lib/snippets/node/index.ts b/lib/snippets/node/index.ts index c8c0cce..b4bee26 100644 --- a/lib/snippets/node/index.ts +++ b/lib/snippets/node/index.ts @@ -19,9 +19,9 @@ import { /** * initialize the package.json * - * @param {string} folder folder - * @param {boolean} use_ts use_ts - * @param {boolean} use_tests use_tests + * @param folder - folder + * @param use_ts - use typescript + * @param use_tests - use tests */ async function init_package ( folder: string,