Skip to content

Commit

Permalink
fix some parameter annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jseppi committed Mar 4, 2019
1 parent 64d17a0 commit b8207a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = (templatePath, templateOptions) => {
let template;

if (!/\.js$/.test(templatePath)) {
template = fs.readFileSync(templatePath);
template = fs.readFileSync(templatePath, { encoding: 'utf8' });
try { template = JSON.parse(template); }
catch (err) { return Promise.reject(err); }
return Promise.resolve(template);
Expand Down
2 changes: 1 addition & 1 deletion lib/conditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ conditions.if = (condition, ifTrue, ifFalse) => {
* @static
* @memberof cloudfriend
* @name not
* @param {boolean} condition - A condition such as Fn::Equals that evaluates
* @param {string|object} condition - A condition such as Fn::Equals that evaluates
* to true or false.
* @returns true for a condition that evaluates to false or returns false for a
* condition that evaluates to true
Expand Down
4 changes: 2 additions & 2 deletions lib/intrinsic.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const intrinsic = module.exports = {};
* @static
* @memberof cloudfriend
* @name base64
* @param {string} value - The string value you want to convert to Base64.
* @param {object|string} value - The string value you want to convert to Base64.
* @returns The original string, in Base64 representation.
*/
intrinsic.base64 = (value) => {
Expand Down Expand Up @@ -185,7 +185,7 @@ intrinsic.sub = (str, variables) => {
* returns the value of an output exported by another stack. You typically use
* this function to create cross-stack references.
*
* @param {str|object} sharedValue - The stack output value that you want to import.
* @param {string|object} sharedValue - The stack output value that you want to import.
* @returns the value of an output exported by another stack.
*/
intrinsic.importValue = (sharedValue) => {
Expand Down

0 comments on commit b8207a3

Please sign in to comment.