detect-features
Version:
Detect and report browser and hardware features
35 lines (34 loc) • 1.29 kB
TypeScript
export declare const isMobile: boolean, isTablet: boolean, isDesktop: boolean, isiOS: boolean | import("detect-ua").IDeviceResult, isAndroid: boolean | import("detect-ua").IDeviceResult, browser: boolean | import("detect-ua").IBrowserResult;
export declare const isChrome: boolean;
export declare const isFirefox: boolean;
export declare const isSafari: boolean;
export declare const isEdge: boolean;
export declare const isInternetExplorer: boolean;
export declare const isOpera: boolean;
export declare const isSamsungBrowser: boolean;
export declare const isYandexBrowser: boolean;
export declare const isUCBrowser: boolean;
export declare const isChromium: boolean;
declare const _default: {
browserName: string;
browserVersion: string;
isAndroid: boolean | import("detect-ua").IDeviceResult;
isChrome: boolean;
isChromium: boolean;
isDesktop: boolean;
isEdge: boolean;
isFirefox: boolean;
isInternetExplorer: boolean;
isMobile: boolean;
isOpera: boolean;
isSafari: boolean;
isSamsungBrowser: boolean;
isTablet: boolean;
isUCBrowser: boolean;
isYandexBrowser: boolean;
isiOS: boolean | import("detect-ua").IDeviceResult;
};
/**
* Device and browser detection
*/
export default _default;