The =
suffix in the type means that it's optional. If the category
parameter isn't optional, then you should change its type to string
.
The goal of this error is to make sure that it's clear which parameters are optional (and that not only does their type reflect it, but their name as well, in accordance with the style guide gjslint
is using), and which are not.