Angular 9 upgrade fails with an error Cannot find name ‘mOffcanvas

I have tried to upgrade my angular 8 application to Angular 9 and left with just one error. The error says Cannot find name ‘mOffcanvas’. Its on line this.offCanvas = new mOffcanvas(this.el.nativeElement. I can see that my directive is using it which is part of QuickSidebar. When i try see definition of of mOffcanvas, i see that it is defined in the typings of metronic. Does anybody have an idea on how to resolve this

Directive

export class QuickSidebarOffcanvasDirective
    implements AfterViewInit {
    offCanvas: any;
    constructor(private el: ElementRef) {}

    ngAfterViewInit(): void {
        this.offCanvas = new mOffcanvas(this.el.nativeElement, {
            overlay: true,
            baseClass: 'm-quick-sidebar',
            closeBy: 'm_quick_sidebar_close',
            toggleBy: 'm_quick_sidebar_toggle'
        });
    }
}

Source: New feed
Source Url Angular 9 upgrade fails with an error Cannot find name ‘mOffcanvas