From e3b731b6176478f896c4116b815c83d349239e2d Mon Sep 17 00:00:00 2001 From: Try Ajitiono Date: Wed, 28 Jun 2023 19:52:26 +0700 Subject: [PATCH] docs: fix JSDoc field for object parameter templateParams in Generator constructor (#999) --- lib/generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generator.js b/lib/generator.js index fd34100ea..21851cc94 100644 --- a/lib/generator.js +++ b/lib/generator.js @@ -77,7 +77,7 @@ class Generator { * @param {String} templateName Name of the template to generate. * @param {String} targetDir Path to the directory where the files will be generated. * @param {Object} options - * @param {String} [options.templateParams] Optional parameters to pass to the template. Each template define their own params. + * @param {Object} [options.templateParams] Optional parameters to pass to the template. Each template define their own params. * @param {String} [options.entrypoint] Name of the file to use as the entry point for the rendering process. Use in case you want to use only a specific template file. Note: this potentially avoids rendering every file in the template. * @param {String[]} [options.noOverwriteGlobs] List of globs to skip when regenerating the template. * @param {Object} [options.disabledHooks] Object with hooks to disable. The key is a hook type. If key has "true" value, then the generator skips all hooks from the given type. If the value associated with a key is a string with the name of a single hook, then the generator skips only this single hook name. If the value associated with a key is an array of strings, then the generator skips only hooks from the array.