Skip to content

Commit

Permalink
Add more precise JSDoc for objects used as maps
Browse files Browse the repository at this point in the history
This documents that they are used in such a way, with the type of the
values.
  • Loading branch information
stof committed Aug 3, 2020
1 parent a48197c commit 8769c15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class Encore {
* })
* ```
*
* @param {object} aliases
* @param {Object<string, string>} aliases
*
* @returns {Encore}
*/
Expand Down Expand Up @@ -742,7 +742,7 @@ class Encore {
* This is useful for older packages, that might
* expect jQuery (or something else) to be a global variable.
*
* @param {object} variables
* @param {Object<string, string|string[]>} variables
* @returns {Encore}
*/
autoProvideVariables(variables) {
Expand Down

0 comments on commit 8769c15

Please sign in to comment.