bit101 / quicksettings

JavaScript library for making a quick settings panel to control code parameters.
MIT License
458 stars 52 forks source link

Update jsdoc to characterize optional parameters as such #51

Closed djipco closed 5 years ago

djipco commented 5 years ago

I only fixed the ones that I stumbled upon. There might be others. I'll happily update those as well when I encounter them. When parameters are not defined as optional, omitting them in your code triggers a warning in various IDEs.

Note regarding overrideStyle(): I believe the value for a style is always a string. If you really want to allow various types, you can use *.