How to migrate this javascript code to typescript

0

Help, the truth is that I'm doing a responsive sidebar and since I have this code that I got from the internet, however, I need to translate it to typescript so I can use it in a wide-angle project that I'm doing.

No more the code

$(document).ready(function () {
    $("#sidebar").mCustomScrollbar({
        theme: "minimal"
    });

    $('#sidebarCollapse').on('click', function () {
        $('#sidebar, #content').toggleClass('active');
        $('.collapse.in').toggleClass('in');
        $('a[aria-expanded=true]').attr('aria-expanded', 'false');
    });
});
    
asked by Jesus Alfredo 28.08.2018 в 21:50
source

0 answers