I want to use detect-mobile package (https://github.com/hgoebl/mobile-detect.js/tree/v1.4.4) in Angular application.
But it can't be imported usual way. I've tried each of following:
import { MobileDetect } from 'mobile-detect';
import MobileDetect from 'mobile-detect';
import {} from 'mobile-detect';
Mobile detect d.ts file has following structure:
What am I doing wrong and how should it be imported? Also I would be greatly appreciated for explanation how such package differs from others.
Stackblitz: https://stackblitz.com/edit/angular-3qptjt
