Skip to content

Commit

Permalink
Update jsDoc for Gettext constructor.
Browse files Browse the repository at this point in the history
IDEs like WebStorm complain when `new Gettext()` is called without a param since the `options` param is not marked optional.
  • Loading branch information
BadgerBadgerBadgerBadger committed Feb 17, 2017
1 parent 27b68a4 commit b3b5c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gettext.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = Gettext;
* Creates and returns a new Gettext instance.
*
* @constructor
* @param {Object} options A set of options
* @param {Object} [options] A set of options
* @param {Boolean} options.debug Whether to output debug info into the
* console.
* @return {Object} A Gettext instance
Expand Down

0 comments on commit b3b5c6b

Please sign in to comment.