When working with the cookie banner last week I had a situation where I didn't need to run any functions immediately on acceptance, and so omitted the fns parameter from the types option.
This caused an error that was resolved by passing an empty array. I think that each of the parameters in the cookie types might actually be mandatory? And wondered if we could look at at least one of the following at some point:
Add a note to the docs to indicate this
Set up the scripts to send a message to the console if one of the params is missed, to avoid erroring
Maybe look at allowing the fns param (and possibly others) to be omitted
When working with the cookie banner last week I had a situation where I didn't need to run any functions immediately on acceptance, and so omitted the fns parameter from the types option.
This caused an error that was resolved by passing an empty array. I think that each of the parameters in the cookie types might actually be mandatory? And wondered if we could look at at least one of the following at some point: