We are facing a challenge with our TypeScript files as we have no access to jQuery from them. Our goal is to trigger Bootstrap's collapse method...
$(object).collapse(method)
but without relying on jQuery.
Intended Outcome
//Replicates the functionality of Bootstrap's jQuery collapse.
function Collapse(object, method)
{
/* Implementing some magic here to bypass jQuery */.collapse(method);
}
Despite searching online and skimming through Bootstrap's code, there doesn't seem to be a straightforward solution that I can attempt. How can I invoke Bootstrap's collapse method sans jQuery?