Using Typescript, I am having difficulty with an event.
The event raises like this...
$(this).trigger('customEvent', { page: index });
This has always worked fine in Javascript. But my wiring to this is not working in Typescript when I try to get the parameters...
$(someSelector).on('customEvent', (e, page) => {
// do some stuff with page or e
});
It just refuses to let me have the two parameters. But the standard e does not contain all of the information I need for this to work right.