Skip to content

Commit 5abbc72

Browse files
committed
Add more precise JSDoc for objects used as maps
This documents that they are used in such a way, with the type of the values.
1 parent 87f5277 commit 5abbc72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ class Encore {
350350
* })
351351
* ```
352352
*
353-
* @param {object} aliases
353+
* @param {Object<string, string>} aliases
354354
*
355355
* @returns {Encore}
356356
*/
@@ -742,7 +742,7 @@ class Encore {
742742
* This is useful for older packages, that might
743743
* expect jQuery (or something else) to be a global variable.
744744
*
745-
* @param {object} variables
745+
* @param {Object<string, string|string[]>} variables
746746
* @returns {Encore}
747747
*/
748748
autoProvideVariables(variables) {

0 commit comments

Comments
 (0)