You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update description of prompt
Correct cache to store.
Add that storage property can be specified as a string.
Add that storage parameter is a fallback storage.
* Improve description.
Co-authored-by: Marcelo Shima <[email protected]>
Copy file name to clipboardExpand all lines: lib/index.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -502,13 +502,13 @@ class Generator extends EventEmitter {
502
502
/**
503
503
* Prompt user to answer questions. The signature of this method is the same as {@link https://github.com/SBoudrias/Inquirer.js Inquirer.js}
504
504
*
505
-
* On top of the Inquirer.js API, you can provide a `{cache: true}` property for
505
+
* On top of the Inquirer.js API, you can provide a `{store: true}` property for
506
506
* every question descriptor. When set to true, Yeoman will store/fetch the
507
507
* user's answers as defaults.
508
508
*
509
509
* @param {object|object[]} questions Array of question descriptor objects. See {@link https://github.com/SBoudrias/Inquirer.js/blob/master/README.md Documentation}
510
-
* @param {Storage} [questions.storage] Store/fetch the question on the storage.
511
-
* @param {Storage} [storage] Storage object
510
+
* @param {Storage|String} [questions.storage] Storage object or name (generator property) to be used by the question to store/fetch the response.
511
+
* @param {Storage|String} [storage] Storage object or name (generator property) to be used by default to store/fetch responses.
0 commit comments