Passing the NotificationOptions argument with as any makes the warning go away and allows the code to compile, but it appears the onDequeue & button keys are not actually used — I suspect the documentation might be incorrect.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.