In my theme.js file, I currently have the following code:
jQuery(function ($) {
accordion($)
})
const accordion = ($) => ...
By placing the accordion function directly into the jQuery function, Typescript is able to assist with the installed jquery type declarations. However, in the above markup, I do not receive type support for my accordion function.
Is there a solution to address this issue?
Additionally, I want to mention that VS Code is providing typescript support for the js file.